diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-30 15:09:26 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-30 15:09:26 +0000 |
commit | 737167bff883a978f98c15216d1bfa82068072d0 (patch) | |
tree | 9cba3b0b9d5b7e2a0a2999ce4366e50b4e2e8397 /src/transport/plugin_transport_http_client.c | |
parent | 1fab92101d43eb0b5abab878149e9bdc6dba5ae0 (diff) | |
download | gnunet-737167bff883a978f98c15216d1bfa82068072d0.tar.gz gnunet-737167bff883a978f98c15216d1bfa82068072d0.zip |
just to be sure curl is not causing the disconnects
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 68b9b50c1..ebce5659f 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -507,10 +507,12 @@ client_connect (struct Session *s) | |||
507 | curl_easy_setopt (s->client_get, CURLOPT_WRITEFUNCTION, client_receive); | 507 | curl_easy_setopt (s->client_get, CURLOPT_WRITEFUNCTION, client_receive); |
508 | curl_easy_setopt (s->client_get, CURLOPT_WRITEDATA, s); | 508 | curl_easy_setopt (s->client_get, CURLOPT_WRITEDATA, s); |
509 | curl_easy_setopt (s->client_get, CURLOPT_TIMEOUT_MS, | 509 | curl_easy_setopt (s->client_get, CURLOPT_TIMEOUT_MS, |
510 | (long) GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT.rel_value); | 510 | 30000); |
511 | //(long) GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT.rel_value); | ||
511 | curl_easy_setopt (s->client_get, CURLOPT_PRIVATE, s); | 512 | curl_easy_setopt (s->client_get, CURLOPT_PRIVATE, s); |
512 | curl_easy_setopt (s->client_get, CURLOPT_CONNECTTIMEOUT_MS, | 513 | curl_easy_setopt (s->client_get, CURLOPT_CONNECTTIMEOUT_MS, |
513 | (long) HTTP_NOT_VALIDATED_TIMEOUT.rel_value); | 514 | 30000); |
515 | //(long) HTTP_NOT_VALIDATED_TIMEOUT.rel_value); | ||
514 | curl_easy_setopt (s->client_get, CURLOPT_BUFFERSIZE, | 516 | curl_easy_setopt (s->client_get, CURLOPT_BUFFERSIZE, |
515 | 2 * GNUNET_SERVER_MAX_MESSAGE_SIZE); | 517 | 2 * GNUNET_SERVER_MAX_MESSAGE_SIZE); |
516 | #if CURL_TCP_NODELAY | 518 | #if CURL_TCP_NODELAY |
@@ -538,10 +540,12 @@ client_connect (struct Session *s) | |||
538 | curl_easy_setopt (s->client_put, CURLOPT_WRITEFUNCTION, client_receive); | 540 | curl_easy_setopt (s->client_put, CURLOPT_WRITEFUNCTION, client_receive); |
539 | curl_easy_setopt (s->client_put, CURLOPT_WRITEDATA, s); | 541 | curl_easy_setopt (s->client_put, CURLOPT_WRITEDATA, s); |
540 | curl_easy_setopt (s->client_put, CURLOPT_TIMEOUT_MS, | 542 | curl_easy_setopt (s->client_put, CURLOPT_TIMEOUT_MS, |
541 | (long) GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT.rel_value); | 543 | 300000); |
544 | //(long) GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT.rel_value); | ||
542 | curl_easy_setopt (s->client_put, CURLOPT_PRIVATE, s); | 545 | curl_easy_setopt (s->client_put, CURLOPT_PRIVATE, s); |
543 | curl_easy_setopt (s->client_put, CURLOPT_CONNECTTIMEOUT_MS, | 546 | curl_easy_setopt (s->client_put, CURLOPT_CONNECTTIMEOUT_MS, |
544 | (long) HTTP_NOT_VALIDATED_TIMEOUT.rel_value); | 547 | 300000); |
548 | //(long) HTTP_NOT_VALIDATED_TIMEOUT.rel_value); | ||
545 | curl_easy_setopt (s->client_put, CURLOPT_BUFFERSIZE, | 549 | curl_easy_setopt (s->client_put, CURLOPT_BUFFERSIZE, |
546 | 2 * GNUNET_SERVER_MAX_MESSAGE_SIZE); | 550 | 2 * GNUNET_SERVER_MAX_MESSAGE_SIZE); |
547 | #if CURL_TCP_NODELAY | 551 | #if CURL_TCP_NODELAY |