aboutsummaryrefslogtreecommitdiff
path: root/src/util/server_nc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-06 09:00:14 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-06 09:00:14 +0000
commit170d5baeece2def099112c6a25287a95d2b28899 (patch)
tree5950b36e6c5fa5fe6b90c8c3efc68dcce50d931d /src/util/server_nc.c
parentd9c8e8f14e77670c657ae42030ff3581ad060968 (diff)
downloadgnunet-170d5baeece2def099112c6a25287a95d2b28899.tar.gz
gnunet-170d5baeece2def099112c6a25287a95d2b28899.zip
-use only one nc per client
Diffstat (limited to 'src/util/server_nc.c')
-rw-r--r--src/util/server_nc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/server_nc.c b/src/util/server_nc.c
index 4e54cf464..6e8f8ccdf 100644
--- a/src/util/server_nc.c
+++ b/src/util/server_nc.c
@@ -211,7 +211,9 @@ GNUNET_SERVER_notification_context_create (struct GNUNET_SERVER_Handle *server,
211 ret = GNUNET_new (struct GNUNET_SERVER_NotificationContext); 211 ret = GNUNET_new (struct GNUNET_SERVER_NotificationContext);
212 ret->server = server; 212 ret->server = server;
213 ret->queue_length = queue_length; 213 ret->queue_length = queue_length;
214 GNUNET_SERVER_disconnect_notify (server, &handle_client_disconnect, ret); 214 GNUNET_SERVER_disconnect_notify (server,
215 &handle_client_disconnect,
216 ret);
215 return ret; 217 return ret;
216} 218}
217 219
@@ -234,7 +236,7 @@ GNUNET_SERVER_notification_context_destroy (struct GNUNET_SERVER_NotificationCon
234 pos); 236 pos);
235 if (NULL != pos->th) 237 if (NULL != pos->th)
236 { 238 {
237 GNUNET_SERVER_notify_transmit_ready_cancel(pos->th); 239 GNUNET_SERVER_notify_transmit_ready_cancel (pos->th);
238 pos->th = NULL; 240 pos->th = NULL;
239 } 241 }
240 GNUNET_SERVER_client_drop (pos->client); 242 GNUNET_SERVER_client_drop (pos->client);
@@ -307,7 +309,7 @@ transmit_message (void *cls,
307 if (NULL == buf) 309 if (NULL == buf)
308 { 310 {
309 /* 'cl' should be freed via disconnect notification shortly */ 311 /* 'cl' should be freed via disconnect notification shortly */
310 LOG (GNUNET_ERROR_TYPE_DEBUG, 312 LOG (GNUNET_ERROR_TYPE_WARNING,
311 "Failed to transmit message from NC queue to client\n"); 313 "Failed to transmit message from NC queue to client\n");
312 return 0; 314 return 0;
313 } 315 }