* 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.
git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1717067 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/MockHTTPinC/MockHTTP_server.c b/test/MockHTTPinC/MockHTTP_server.c
index d7c89cc..df253f8 100644
--- a/test/MockHTTPinC/MockHTTP_server.c
+++ b/test/MockHTTPinC/MockHTTP_server.c
@@ -1330,6 +1330,7 @@
if (resp->closeConn) {
_mhLog(MH_VERBOSE, cctx->skt,
"Actively closing connection.\n");
+ cctx->shutdown(cctx, APR_SHUTDOWN_READWRITE);
return APR_EOF;
}
status = APR_SUCCESS;