lkml.org 
[lkml]   [2009]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PROBLEM: Epoll frequently fails to notify connects at connect bursts
On Wed, Aug 26, 2009 at 11:15:10AM +0200, Will Brown wrote:
> On Wed, Aug 26, 2009 at 3:24 AM, Davide Libenzi<davidel@xmailserver.org> wrote:

> >> Multiple quasi-simultaneous events for the same fd are merged. This is why
> >> on POLLIN on accepting sockets you want to do something like:

> Aha! Thank you immensely Davide. It cost me one week of frustration already.

> 1. Where should I have picked up this gem of essential information? I
> haven't seen it in the man-pages for either 'epoll' or 'accept'.

It should be covered in the "Level-Triggered and Edge-Triggered" section
of the epoll() manual page - the particular case of accept() isn't
covered but the general idea is the same.


\
 
 \ /
  Last update: 2009-08-26 14:29    [W:0.244 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site