From 8846f4d68f0f05185dc69f7c13badb387733ae66 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Thu, 15 Jun 2017 13:54:38 -0500 Subject: [PATCH] [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); -- 2.25.1