Author: rhuijben
Date: Sun Nov 29 14:14:17 2015
New Revision: 1717067
URL: http://svn.apache.org/viewvc?rev=1717067&view=rev
Log:
* test/MockHTTPinC/MockHTTP_server.c
(processServer): When actively closing the connection, do this in the most
proper way (just like Apache HTTPD does), to ensure the clean TCP close
sequence is used.
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=1717067&r1=1717066&r2=1717067&view=diff
==============================================================================
--- serf/trunk/test/MockHTTPinC/MockHTTP_server.c (original)
+++ serf/trunk/test/MockHTTPinC/MockHTTP_server.c Sun Nov 29 14:14:17 2015
@@ -1330,6 +1330,7 @@ static apr_status_t processServer(mhServ
if (resp->closeConn) {
_mhLog(MH_VERBOSE, cctx->skt,
"Actively closing connection.\n");
+ cctx->shutdown(cctx, APR_SHUTDOWN_READWRITE);
return APR_EOF;
}
status = APR_SUCCESS;