libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 8140b9e73792afc38ac8b6b4b0bd1a55ef1561a7
parent 1497b774c767d24230804835e624fb9099b7d91e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 26 Dec 2021 12:39:07 +0300

test_client_put_stop: added detection of unexpected connection shut down

Diffstat:
Msrc/microhttpd/test_client_put_stop.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/test_client_put_stop.c b/src/microhttpd/test_client_put_stop.c @@ -710,6 +710,8 @@ _MHD_dumbClient_send_req (struct _MHD_dumbClient *clnt) return; if (MHD_SCKT_ERR_IS_REMOTE_DISCNN_ (err)) mhdErrorExitDesc ("The connection was aborted by MHD"); + if (MHD_SCKT_ERR_IS_ (err, MHD_SCKT_EPIPE_)) + mhdErrorExitDesc ("The connection was shut down on MHD side"); externalErrorExitDesc ("Unexpected network error"); } clnt->send_off += (size_t) res;