Subject: Re: [Patch] Fix reading from a tcp socket

Re: [Patch] Fix reading from a tcp socket

From: William Ahern <>
Date: Wed, 25 Jul 2012 12:53:18 -0700

On Wed, Jul 25, 2012 at 08:29:12AM +0000, Ghennadi Procopciuc wrote:
> Hi all,
> We discovered a bug that occurs in two situations :
> 1.When many responses come simultaneously, c-ares reads only the first; after that,
> it awaits another notification for each of them. However, until a read
> does not return EAGAIN epoll does not send notifications for that
> socket anymore.

That should only happen if you're using edge-triggered mode for the event.
By default epoll should be using level-triggered mode.

Received on 2012-07-25