aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-26 12:39:07 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-26 12:41:47 +0300
commit8140b9e73792afc38ac8b6b4b0bd1a55ef1561a7 (patch)
tree4eaf718599925ea83e831bbdb240ee72fed4f12b
parent1497b774c767d24230804835e624fb9099b7d91e (diff)
downloadlibmicrohttpd-8140b9e73792afc38ac8b6b4b0bd1a55ef1561a7.tar.gz
libmicrohttpd-8140b9e73792afc38ac8b6b4b0bd1a55ef1561a7.zip
test_client_put_stop: added detection of unexpected connection shut down
-rw-r--r--src/microhttpd/test_client_put_stop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/test_client_put_stop.c b/src/microhttpd/test_client_put_stop.c
index e2689ec3..d2629031 100644
--- 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)
710 return; 710 return;
711 if (MHD_SCKT_ERR_IS_REMOTE_DISCNN_ (err)) 711 if (MHD_SCKT_ERR_IS_REMOTE_DISCNN_ (err))
712 mhdErrorExitDesc ("The connection was aborted by MHD"); 712 mhdErrorExitDesc ("The connection was aborted by MHD");
713 if (MHD_SCKT_ERR_IS_ (err, MHD_SCKT_EPIPE_))
714 mhdErrorExitDesc ("The connection was shut down on MHD side");
713 externalErrorExitDesc ("Unexpected network error"); 715 externalErrorExitDesc ("Unexpected network error");
714 } 716 }
715 clnt->send_off += (size_t) res; 717 clnt->send_off += (size_t) res;