libmicrohttpd

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

commit 63a36813612a466c306297a5481c1e1e4f2e6164
parent eb8cc7eeff1855d3d2bad39562f45c39406c6c0e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 13 Oct 2019 20:42:21 +0200

reorder statements so we can look at errno, might theoretically even fix #5826

Diffstat:
Msrc/microhttpd/test_upgrade_large.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/test_upgrade_large.c b/src/microhttpd/test_upgrade_large.c @@ -639,15 +639,18 @@ recv_hdr (struct wr_socket *sock) ret = wr_recv (sock, &c, 1); - kick_select (); if (0 > ret) { if (MHD_SCKT_ERR_IS_EAGAIN_ (MHD_socket_get_error_ ())) continue; + fprintf (stderr, + "recv failed unexpectedly: %s\n", + strerror (errno)); abort (); } if (0 == ret) continue; + kick_select (); if (c == next) { i++;