[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31665 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31665 - gnunet/src/transport |
Date: |
Sun, 22 Dec 2013 01:27:08 +0100 |
Author: grothoff
Date: 2013-12-22 01:27:08 +0100 (Sun, 22 Dec 2013)
New Revision: 31665
Modified:
gnunet/src/transport/plugin_transport_http_client.c
Log:
-fix #3233
Modified: gnunet/src/transport/plugin_transport_http_client.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_client.c 2013-12-22 00:06:17 UTC
(rev 31664)
+++ gnunet/src/transport/plugin_transport_http_client.c 2013-12-22 00:27:08 UTC
(rev 31665)
@@ -474,9 +474,6 @@
struct HTTP_Message *msg;
char *stat_txt;
- GNUNET_assert (plugin != NULL);
- GNUNET_assert (s != NULL);
-
/* lookup if session is really existing */
if (GNUNET_YES != client_exist_session (plugin, s))
{
@@ -527,7 +524,8 @@
"Session %p/connection %p: unpausing connection\n",
s, s->client_put);
s->put_paused = GNUNET_NO;
- curl_easy_pause (s->client_put, CURLPAUSE_CONT);
+ if (NULL != s->client_put)
+ curl_easy_pause (s->client_put, CURLPAUSE_CONT);
}
else if (GNUNET_YES == s->put_tmp_disconnected)
{
@@ -619,7 +617,7 @@
return GNUNET_SYSERR;
}
- if (s->client_put != NULL)
+ if (NULL != s->client_put)
{
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
"Session %p/connection %p: disconnecting PUT connection
to peer `%s'\n",
@@ -644,12 +642,12 @@
s->recv_wakeup_task = GNUNET_SCHEDULER_NO_TASK;
}
- if (s->client_get != NULL)
+ if (NULL != s->client_get)
{
- GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
- "Session %p/connection %p: disconnecting GET connection
to peer `%s'\n",
- s, s->client_get, GNUNET_i2s (&s->target));
-
+ GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
+ "Session %p/connection %p: disconnecting GET connection
to peer `%s'\n",
+ s, s->client_get,
+ GNUNET_i2s (&s->target));
/* remove curl handle from multi handle */
mret = curl_multi_remove_handle (plugin->curl_multi_handle, s->client_get);
if (mret != CURLM_OK)
@@ -663,7 +661,7 @@
}
msg = s->msg_head;
- while (msg != NULL)
+ while (NULL != msg)
{
t = msg->next;
if (NULL != msg->transmit_cont)
@@ -784,7 +782,8 @@
s, s->client_put);
s->put_paused = GNUNET_NO;
s->put_tmp_disconnecting = GNUNET_YES;
- curl_easy_pause (s->client_put, CURLPAUSE_CONT);
+ if (NULL != s->client_put)
+ curl_easy_pause (s->client_put, CURLPAUSE_CONT);
client_schedule (s->plugin, GNUNET_YES);
}
@@ -890,8 +889,10 @@
"Session %p/connection %p: Waking up GET handle\n",
s,
s->client_get);
- if (s->client_get != NULL)
+ s->put_paused = GNUNET_NO;
+ if (NULL != s->client_get)
curl_easy_pause (s->client_get, CURLPAUSE_CONT);
+
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31665 - gnunet/src/transport,
gnunet <=