summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-06-15 13:54:38 -0500
committerDavid Barksdale <amatus@amat.us>2017-06-15 13:54:38 -0500
commit8846f4d68f0f05185dc69f7c13badb387733ae66 (patch)
tree41cdf0be9a2f8165251f62c4e27a034d7635a80c /src/transport/plugin_transport_http_server.c
parent1fc3df9be3dd51b14f752ea1a9e623aa781192bd (diff)
[transport] Don't exit with suspended connections
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c7
1 files changed, 6 insertions, 1 deletions
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);