gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: test_client_put_stop: handle corr


From: gnunet
Subject: [libmicrohttpd] branch master updated: test_client_put_stop: handle correctly close phase on the client side
Date: Thu, 25 Nov 2021 09:58:14 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 5f6ccd33 test_client_put_stop: handle correctly close phase on the 
client side
5f6ccd33 is described below

commit 5f6ccd331f55b313f29161cc9d2077326c21d73f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Nov 25 11:44:04 2021 +0300

    test_client_put_stop: handle correctly close phase on the client side
---
 src/microhttpd/test_client_put_stop.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/microhttpd/test_client_put_stop.c 
b/src/microhttpd/test_client_put_stop.c
index 9a3c3a67..ce197190 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -763,12 +763,15 @@ _MHD_dumbClient_process_from_fdsets (struct 
_MHD_dumbClient *clnt,
 {
   if (_MHD_dumbClient_needs_process (clnt))
     return _MHD_dumbClient_process (clnt);
-  else if (_MHD_dumbClient_needs_recv (clnt) && FD_ISSET (clnt->sckt, rs))
-    return _MHD_dumbClient_process (clnt);
-  else if (_MHD_dumbClient_needs_send (clnt) && FD_ISSET (clnt->sckt, ws))
-    return _MHD_dumbClient_process (clnt);
-  else if (FD_ISSET (clnt->sckt, es))
-    return _MHD_dumbClient_process (clnt);
+  else if (MHD_INVALID_SOCKET != clnt->sckt)
+  {
+    if (_MHD_dumbClient_needs_recv (clnt) && FD_ISSET (clnt->sckt, rs))
+      return _MHD_dumbClient_process (clnt);
+    else if (_MHD_dumbClient_needs_send (clnt) && FD_ISSET (clnt->sckt, ws))
+      return _MHD_dumbClient_process (clnt);
+    else if (FD_ISSET (clnt->sckt, es))
+      return _MHD_dumbClient_process (clnt);
+  }
   return DUMB_CLIENT_FINISHED == clnt->stage;
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]