diff options
-rw-r--r-- | src/util/client.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/util/client.c b/src/util/client.c index 138b1cfdd..a5eae2a75 100644 --- a/src/util/client.c +++ b/src/util/client.c | |||
@@ -261,6 +261,8 @@ transmit_ready (void *cls) | |||
261 | pos = (const char *) cstate->msg; | 261 | pos = (const char *) cstate->msg; |
262 | len = ntohs (cstate->msg->size); | 262 | len = ntohs (cstate->msg->size); |
263 | GNUNET_assert (cstate->msg_off < len); | 263 | GNUNET_assert (cstate->msg_off < len); |
264 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
265 | "client: message of type %u trying to send with socket %p\n", ntohs(cstate->msg->type), cstate->sock); | ||
264 | RETRY: | 266 | RETRY: |
265 | ret = GNUNET_NETWORK_socket_send (cstate->sock, | 267 | ret = GNUNET_NETWORK_socket_send (cstate->sock, |
266 | &pos[cstate->msg_off], | 268 | &pos[cstate->msg_off], |
@@ -382,8 +384,11 @@ connection_client_destroy_impl (struct GNUNET_MQ_Handle *mq, | |||
382 | GNUNET_SCHEDULER_cancel (cstate->recv_task); | 384 | GNUNET_SCHEDULER_cancel (cstate->recv_task); |
383 | if (NULL != cstate->retry_task) | 385 | if (NULL != cstate->retry_task) |
384 | GNUNET_SCHEDULER_cancel (cstate->retry_task); | 386 | GNUNET_SCHEDULER_cancel (cstate->retry_task); |
385 | if (NULL != cstate->sock) | 387 | if (NULL != cstate->sock){ |
388 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
389 | "client: destroying socket: %p\n", cstate->sock); | ||
386 | GNUNET_NETWORK_socket_close (cstate->sock); | 390 | GNUNET_NETWORK_socket_close (cstate->sock); |
391 | } | ||
387 | cancel_aps (cstate); | 392 | cancel_aps (cstate); |
388 | GNUNET_free (cstate->service_name); | 393 | GNUNET_free (cstate->service_name); |
389 | GNUNET_free_non_null (cstate->hostname); | 394 | GNUNET_free_non_null (cstate->hostname); |
@@ -522,6 +527,10 @@ try_unixpath (const char *service_name, | |||
522 | sock = GNUNET_NETWORK_socket_create (AF_UNIX, | 527 | sock = GNUNET_NETWORK_socket_create (AF_UNIX, |
523 | SOCK_STREAM, | 528 | SOCK_STREAM, |
524 | 0); | 529 | 0); |
530 | |||
531 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, | ||
532 | "client: socket created: %p\n", sock); | ||
533 | |||
525 | if ( (NULL != sock) && | 534 | if ( (NULL != sock) && |
526 | ( (GNUNET_OK == | 535 | ( (GNUNET_OK == |
527 | GNUNET_NETWORK_socket_connect (sock, | 536 | GNUNET_NETWORK_socket_connect (sock, |
@@ -807,7 +816,7 @@ connection_client_send_impl (struct GNUNET_MQ_Handle *mq, | |||
807 | cstate->msg_off = 0; | 816 | cstate->msg_off = 0; |
808 | if (NULL == cstate->sock){ | 817 | if (NULL == cstate->sock){ |
809 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 818 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
810 | "client: waiting for socket\n"); | 819 | "client: message of type %u waiting for socket\n",ntohs(msg->type)); |
811 | return; /* still waiting for connection */ | 820 | return; /* still waiting for connection */ |
812 | } | 821 | } |
813 | cstate->send_task | 822 | cstate->send_task |