You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2013/08/25 20:59:42 UTC

svn commit: r1517365 - /httpd/httpd/trunk/server/mpm/event/event.c

Author: covener
Date: Sun Aug 25 18:59:42 2013
New Revision: 1517365

URL: http://svn.apache.org/r1517365
Log:
In event's process_lingering_close, close the socket and remove it 
from the ring as soon as we see any status that isn't 
APR_EAGAIN or APR_SUCCESS, instead of waiting specifically
for EOF. 


Modified:
    httpd/httpd/trunk/server/mpm/event/event.c

Modified: httpd/httpd/trunk/server/mpm/event/event.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/event/event.c?rev=1517365&r1=1517364&r2=1517365&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/event/event.c (original)
+++ httpd/httpd/trunk/server/mpm/event/event.c Sun Aug 25 18:59:42 2013
@@ -1436,7 +1436,7 @@ static void process_lingering_close(even
         rv = apr_socket_recv(csd, dummybuf, &nbytes);
     } while (rv == APR_SUCCESS);
 
-    if (!APR_STATUS_IS_EOF(rv)) {
+    if (APR_STATUS_IS_EAGAIN(rv)) {
         return;
     }