In the mock-http server: stop reading requests when we decide that we are
going to close the connection. Reading them may tell the other side that
we are going to process them.
* test/MockHTTPinC/MockHTTP_server.c
(sslSocketShutdown): Add prototype.
(shutdown_func_t): Define.
(_mhClientCtx_t): Add shutdown function.
(socketShutdown): New function.
(processServer): Shutdown the connection when we decide to stop processing
after this request.
(initClientCtx): Init functions.
(sslSocketShutdown): New function.
|