apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61985] Incorrect time-out blocking dropped connection
Date Wed, 10 Jan 2018 13:28:27 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61985

Yann Ylavic <ylavic.dev@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Yann Ylavic <ylavic.dev@gmail.com> ---
The man of poll(2) on linux says:
       "The field fd contains a file descriptor for an open file.  If this
field is negative, then the corresponding events field is ignored and the
revents field returns zero.  (This provides an easy way of ignoring a file
descriptor for a single poll() call: simply negate the fd field...)"

So it's valid operation somehow (which timeouts), why wouldn't APR respect
that?
I'm not sure apr_wait_for_io_or_timeout() should error here, not really a
strong opinion either.

Maybe something to fix on the caller side though, how does such negative fd
come here, double close? No c->aborted on the httpd side?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message