serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1708521 - /serf/trunk/test/MockHTTPinC/MockHTTP_server.c
Date Tue, 13 Oct 2015 21:48:09 GMT
Author: rhuijben
Date: Tue Oct 13 21:48:08 2015
New Revision: 1708521

URL: http://svn.apache.org/viewvc?rev=1708521&view=rev
Log:
* test/MockHTTPinC/MockHTTP_server.c
  (processServer): Tweak connection lost check in an attempt to fix the
    same problem on more platforms.

Modified:
    serf/trunk/test/MockHTTPinC/MockHTTP_server.c

Modified: serf/trunk/test/MockHTTPinC/MockHTTP_server.c
URL: http://svn.apache.org/viewvc/serf/trunk/test/MockHTTPinC/MockHTTP_server.c?rev=1708521&r1=1708520&r2=1708521&view=diff
==============================================================================
--- serf/trunk/test/MockHTTPinC/MockHTTP_server.c (original)
+++ serf/trunk/test/MockHTTPinC/MockHTTP_server.c Tue Oct 13 21:48:08 2015
@@ -1429,8 +1429,11 @@ static apr_status_t processServer(mhServ
         }
     }
 
-    if (desc->rtnevents & APR_POLLHUP) {
-        /* may overwrite the result of stream->type->peek */
+    if ((desc->rtnevents & (APR_POLLHUP | APR_POLLERR))
+        || APR_STATUS_IS_ECONNRESET(status)
+        || APR_STATUS_IS_ECONNABORTED(status)) {
+
+        /* overwrites the result of stream->type->peek() */
         status = APR_EOF;
     }
 



Mime
View raw message