apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davi Arnaut <d...@haxent.com.br>
Subject Re: Bug in epoll
Date Thu, 18 Jan 2007 03:26:12 GMT
Paul Querna wrote:
> Hey All,
> I am observing a bug in apr_pollset_poll.
> To me, the non-kernel programmer, it looks like epoll is only getting
> triggered on the wakeup timer for the timeout, and not returning
> instantly when it has found a socket available for read.  When it
> finally does hit the timeout wakeup, it does notice that there is a
> socket available to read, and returns it, rather than an actual timeout.
> For the short term, I am satisfied with disabling epoll on my builds of
> APR.  I think we should consider disabling epoll by default on APR, if I
> can isolate the bug to a kernel revision.

epoll code hasn't changed much in ages..I would probably blame
apr_memcache code :)



    rv = apr_pollset_create(&pollset, apr_hash_count(server_queries),
temp_pool, 0);

Also there a lot of calls that the returns values are not checked.
Anyway, better double check the apr_memcache code. A full strace log
should help shed some light on the issue.

Davi Arnaut

View raw message