gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: [transport] Don't exit with


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: [transport] Don't exit with suspended connections
Date: Thu, 15 Jun 2017 20:55:12 +0200

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

david-barksdale pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 8846f4d68 [transport] Don't exit with suspended connections
8846f4d68 is described below

commit 8846f4d68f0f05185dc69f7c13badb387733ae66
Author: David Barksdale <address@hidden>
AuthorDate: Thu Jun 15 13:54:38 2017 -0500

    [transport] Don't exit with suspended connections
---
 src/transport/plugin_transport_http_server.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/transport/plugin_transport_http_server.c 
b/src/transport/plugin_transport_http_server.c
index e3d5e9a01..921c6842a 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -550,8 +550,8 @@ server_delete_session (struct GNUNET_ATS_Session *s)
     if (NULL != s->server_recv)
     {
       GNUNET_assert (s->server_recv->suspended);
-      MHD_resume_connection (s->server_recv->mhd_conn);
       s->server_recv->suspended = false;
+      MHD_resume_connection (s->server_recv->mhd_conn);
     }
   }
   GNUNET_assert (GNUNET_OK ==
@@ -589,6 +589,11 @@ server_delete_session (struct GNUNET_ATS_Session *s)
     MHD_set_connection_option (s->server_send->mhd_conn,
                                MHD_CONNECTION_OPTION_TIMEOUT,
                                1 /* 0 = no timeout, so this is MIN */);
+    if (s->server_recv->suspended)
+    {
+      s->server_recv->suspended = false;
+      MHD_resume_connection (s->server_recv->mhd_conn);
+    }
     server_reschedule (plugin,
                       s->server_send->mhd_daemon,
                       GNUNET_YES);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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