aboutsummaryrefslogtreecommitdiff
path: root/src/util/server.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-01 09:57:05 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-01 09:57:05 +0000
commite1b8d8139a6e87901fbaec0e3b94451ac0701f1a (patch)
tree4e4451d963fcde19bbe90569c4a14ac6b019a6d6 /src/util/server.c
parent8c88dbade391447ef50adfdb50dc7ec04513dfd8 (diff)
downloadgnunet-e1b8d8139a6e87901fbaec0e3b94451ac0701f1a.tar.gz
gnunet-e1b8d8139a6e87901fbaec0e3b94451ac0701f1a.zip
-code to debug #2390
Diffstat (limited to 'src/util/server.c')
-rw-r--r--src/util/server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/server.c b/src/util/server.c
index 2ea40b2b6..b98e7fc67 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -817,6 +817,7 @@ warn_no_receive_done (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
817{ 817{
818 struct GNUNET_SERVER_Client *client = cls; 818 struct GNUNET_SERVER_Client *client = cls;
819 819
820 GNUNET_break (0 != client->warn_type); /* type should never be 0 here, as we don't use 0 */
820 client->warn_task = 821 client->warn_task =
821 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, 822 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES,
822 &warn_no_receive_done, client); 823 &warn_no_receive_done, client);
@@ -903,6 +904,7 @@ GNUNET_SERVER_inject (struct GNUNET_SERVER_Handle *server,
903 { 904 {
904 if (0 == sender->suspended) 905 if (0 == sender->suspended)
905 { 906 {
907 GNUNET_break (0 != type); /* type should never be 0 here, as we don't use 0 */
906 sender->warn_start = GNUNET_TIME_absolute_get (); 908 sender->warn_start = GNUNET_TIME_absolute_get ();
907 sender->warn_task = 909 sender->warn_task =
908 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, 910 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES,
@@ -1396,6 +1398,7 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client)
1396 GNUNET_SERVER_notify_transmit_ready_cancel (&client->th); 1398 GNUNET_SERVER_notify_transmit_ready_cancel (&client->th);
1397 (void) GNUNET_SCHEDULER_add_now (&destroy_connection, 1399 (void) GNUNET_SCHEDULER_add_now (&destroy_connection,
1398 client->connection); 1400 client->connection);
1401 GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == client->warn_task);
1399 GNUNET_free (client); 1402 GNUNET_free (client);
1400 /* we might be in soft-shutdown, test if we're done */ 1403 /* we might be in soft-shutdown, test if we're done */
1401 if (NULL != server) 1404 if (NULL != server)