diff options
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 507cad216..0acfaf60b 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -290,10 +290,11 @@ server_receive_mst_cb (void *cls, void *client, | |||
290 | 290 | ||
291 | if (delay.rel_value > 0) | 291 | if (delay.rel_value > 0) |
292 | { | 292 | { |
293 | #if VERBOSE_CLIENT | 293 | #if VERBOSE_SERVER |
294 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, | 294 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, |
295 | "Server: peer `%s' address `%s' next read delayed for %llu ms\n", | 295 | "Server: peer `%s' address `%s' next read delayed for %llu ms\n", |
296 | GNUNET_i2s (&s->target), GNUNET_a2s (s->addr, s->addrlen), | 296 | GNUNET_i2s (&s->target), |
297 | http_plugin_address_to_string (NULL, s->addr, s->addrlen), | ||
297 | delay); | 298 | delay); |
298 | #endif | 299 | #endif |
299 | } | 300 | } |
@@ -654,8 +655,8 @@ server_access_cb (void *cls, struct MHD_Connection *mhd_connection, | |||
654 | #if VERBOSE_SERVER | 655 | #if VERBOSE_SERVER |
655 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, | 656 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, |
656 | "Server: Peer `%s' PUT on address `%s' connected\n", | 657 | "Server: Peer `%s' PUT on address `%s' connected\n", |
657 | GNUNET_i2s (&s->target), GNUNET_a2s (s->addr, | 658 | GNUNET_i2s (&s->target), |
658 | s->addrlen)); | 659 | http_plugin_address_to_string (NULL, s->addr, s->addrlen)); |
659 | #endif | 660 | #endif |
660 | return MHD_YES; | 661 | return MHD_YES; |
661 | } | 662 | } |
@@ -666,8 +667,8 @@ server_access_cb (void *cls, struct MHD_Connection *mhd_connection, | |||
666 | #if VERBOSE_SERVER | 667 | #if VERBOSE_SERVER |
667 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, | 668 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, |
668 | "Server: peer `%s' PUT on address `%s' received %Zu bytes\n", | 669 | "Server: peer `%s' PUT on address `%s' received %Zu bytes\n", |
669 | GNUNET_i2s (&s->target), GNUNET_a2s (s->addr, | 670 | GNUNET_i2s (&s->target), |
670 | s->addrlen), | 671 | http_plugin_address_to_string (NULL,s->addr, s->addrlen), |
671 | *upload_data_size); | 672 | *upload_data_size); |
672 | #endif | 673 | #endif |
673 | struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get (); | 674 | struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get (); |
@@ -760,7 +761,7 @@ server_disconnect_cb (void *cls, struct MHD_Connection *connection, | |||
760 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, | 761 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, |
761 | "Server: %X peer `%s' GET on address `%s' disconnected\n", | 762 | "Server: %X peer `%s' GET on address `%s' disconnected\n", |
762 | s->server_send, GNUNET_i2s (&s->target), | 763 | s->server_send, GNUNET_i2s (&s->target), |
763 | GNUNET_a2s (s->addr, s->addrlen)); | 764 | http_plugin_address_to_string (NULL, s->addr, s->addrlen)); |
764 | #endif | 765 | #endif |
765 | s->server_send = NULL; | 766 | s->server_send = NULL; |
766 | 767 | ||
@@ -780,7 +781,7 @@ server_disconnect_cb (void *cls, struct MHD_Connection *connection, | |||
780 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, | 781 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, |
781 | "Server: %X peer `%s' PUT on address `%s' disconnected\n", | 782 | "Server: %X peer `%s' PUT on address `%s' disconnected\n", |
782 | s->server_recv, GNUNET_i2s (&s->target), | 783 | s->server_recv, GNUNET_i2s (&s->target), |
783 | GNUNET_a2s (s->addr, s->addrlen)); | 784 | http_plugin_address_to_string (NULL, s->addr, s->addrlen)); |
784 | #endif | 785 | #endif |
785 | s->server_recv = NULL; | 786 | s->server_recv = NULL; |
786 | if (s->server_send != NULL) | 787 | if (s->server_send != NULL) |
@@ -821,7 +822,8 @@ server_disconnect_cb (void *cls, struct MHD_Connection *connection, | |||
821 | #if VERBOSE_SERVER | 822 | #if VERBOSE_SERVER |
822 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, | 823 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, |
823 | "Server: peer `%s' on address `%s' disconnected\n", | 824 | "Server: peer `%s' on address `%s' disconnected\n", |
824 | GNUNET_i2s (&s->target), GNUNET_a2s (s->addr, s->addrlen)); | 825 | GNUNET_i2s (&s->target), |
826 | http_plugin_address_to_string (NULL, s->addr, s->addrlen)); | ||
825 | #endif | 827 | #endif |
826 | if (s->msg_tk != NULL) | 828 | if (s->msg_tk != NULL) |
827 | { | 829 | { |