httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1517365 - /httpd/httpd/trunk/server/mpm/event/event.c
Date Sun, 25 Aug 2013 18:59:42 GMT
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;
     }
 



Mime
View raw message