aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-09-16 14:24:29 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-09-16 14:24:29 +0000
commitacb0b0077234212372463cc24366ac79e4bcceb6 (patch)
treed00a00cdf70a4d47b225090b10bd18fe24d6e908 /src/transport/plugin_transport_http_server.c
parentabcb5dfce1f7b5ac066de37e1ec8d32463c04c9a (diff)
downloadgnunet-acb0b0077234212372463cc24366ac79e4bcceb6.tar.gz
gnunet-acb0b0077234212372463cc24366ac79e4bcceb6.zip
client sending & receiving
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index df164aa4b..43d9171eb 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -292,6 +292,9 @@ server_access_cb (void *cls, struct MHD_Connection *mhd_connection,
292 292
293 if (check == GNUNET_NO) 293 if (check == GNUNET_NO)
294 goto error; 294 goto error;
295
296 plugin->cur_connections++;
297
295#if VERBOSE_SERVER 298#if VERBOSE_SERVER
296 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "server: New inbound connection from %s with tag %u\n", GNUNET_h2s_full(&(target.hashPubKey)), tag); 299 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "server: New inbound connection from %s with tag %u\n", GNUNET_h2s_full(&(target.hashPubKey)), tag);
297#endif 300#endif
@@ -495,6 +498,7 @@ server_disconnect_cb (void *cls, struct MHD_Connection *connection,
495 } 498 }
496 t = t->next; 499 t = t->next;
497 } 500 }
501 plugin->cur_connections--;
498 502
499 if ((s->server_send == NULL) && (s->server_recv == NULL)) 503 if ((s->server_send == NULL) && (s->server_recv == NULL))
500 { 504 {