aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-09-20 13:35:53 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-09-20 13:35:53 +0000
commit03b74eb3aa9c8dfdb2a4f9dd4bc1f699e1d2152f (patch)
tree17ac29292baf8c6836c02176d48e4f233f6e7fbe /src/transport/plugin_transport_http_client.c
parenta1a36e8e7c7252131b736163eeba580d6c0ce9a9 (diff)
downloadgnunet-03b74eb3aa9c8dfdb2a4f9dd4bc1f699e1d2152f.tar.gz
gnunet-03b74eb3aa9c8dfdb2a4f9dd4bc1f699e1d2152f.zip
- changes
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 3c422cf3e..2f754c586 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -157,6 +157,7 @@ struct Session
157 157
158 int put_tmp_disconnecting; 158 int put_tmp_disconnecting;
159 159
160 int put_tmp_disconnected;
160 /** 161 /**
161 * Client receive handle 162 * Client receive handle
162 */ 163 */
@@ -453,12 +454,12 @@ http_client_plugin_send (void *cls,
453 memcpy (msg->buf, msgbuf, msgbuf_size); 454 memcpy (msg->buf, msgbuf, msgbuf_size);
454 GNUNET_CONTAINER_DLL_insert_tail (s->msg_head, s->msg_tail, msg); 455 GNUNET_CONTAINER_DLL_insert_tail (s->msg_head, s->msg_tail, msg);
455 456
456 if (GNUNET_YES == s->put_tmp_disconnecting) 457 if (GNUNET_YES == s->put_tmp_disconnected)
457 { 458 {
458 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, s->plugin->name, 459 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, s->plugin->name,
459 "Session %p: Reconnecting PUT connection\n", 460 "Session %p: Reconnecting PUT connection\n",
460 s); 461 s);
461 s->put_tmp_disconnecting = GNUNET_NO; 462 s->put_tmp_disconnected = GNUNET_NO;
462 if (GNUNET_SYSERR == client_connect_put (s)) 463 if (GNUNET_SYSERR == client_connect_put (s))
463 { 464 {
464 return GNUNET_SYSERR; 465 return GNUNET_SYSERR;
@@ -720,6 +721,8 @@ client_send_cb (void *stream, size_t size, size_t nmemb, void *cls)
720 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, s->plugin->name, 721 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, s->plugin->name,
721 "Session %p/connection %p: disconnect due to inactivity\n", 722 "Session %p/connection %p: disconnect due to inactivity\n",
722 s, s->client_put); 723 s, s->client_put);
724 s->put_tmp_disconnecting = GNUNET_NO;
725 s->put_tmp_disconnected = GNUNET_YES;
723 return 0; 726 return 0;
724 } 727 }
725 728
@@ -1321,7 +1324,7 @@ http_client_plugin_get_session (void *cls,
1321 s->ats_address_network_type = ats.value; 1324 s->ats_address_network_type = ats.value;
1322 s->put_paused = GNUNET_NO; 1325 s->put_paused = GNUNET_NO;
1323 s->put_tmp_disconnecting = GNUNET_NO; 1326 s->put_tmp_disconnecting = GNUNET_NO;
1324 1327 s->put_tmp_disconnected = GNUNET_NO;
1325 client_start_session_timeout (s); 1328 client_start_session_timeout (s);
1326 1329
1327 /* add new session */ 1330 /* add new session */