aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-08-27 15:42:28 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-08-27 15:42:28 +0000
commitf3e179a73854540af4900ca3a40a1ab6eb684b49 (patch)
tree41b092c553cd66bf164ee24d408a651d13aeabf5 /src/transport/plugin_transport_http_client.c
parent55910fb919763748015c5c83096764a05919d7f1 (diff)
downloadgnunet-f3e179a73854540af4900ca3a40a1ab6eb684b49.tar.gz
gnunet-f3e179a73854540af4900ca3a40a1ab6eb684b49.zip
timeout
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 1ae3325f6..eb601e30b 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -964,8 +964,8 @@ client_connect (struct Session *s)
964 curl_easy_setopt (s->client_get, CURLOPT_READDATA, s); 964 curl_easy_setopt (s->client_get, CURLOPT_READDATA, s);
965 curl_easy_setopt (s->client_get, CURLOPT_WRITEFUNCTION, client_receive); 965 curl_easy_setopt (s->client_get, CURLOPT_WRITEFUNCTION, client_receive);
966 curl_easy_setopt (s->client_get, CURLOPT_WRITEDATA, s); 966 curl_easy_setopt (s->client_get, CURLOPT_WRITEDATA, s);
967 curl_easy_setopt (s->client_get, CURLOPT_TIMEOUT_MS, 967 /* No timeout by default, timeout done with session timeout */
968 (long) CLIENT_SESSION_TIMEOUT.rel_value); 968 curl_easy_setopt (s->client_get, CURLOPT_TIMEOUT, 0);
969 curl_easy_setopt (s->client_get, CURLOPT_PRIVATE, s); 969 curl_easy_setopt (s->client_get, CURLOPT_PRIVATE, s);
970 curl_easy_setopt (s->client_get, CURLOPT_CONNECTTIMEOUT_MS, 970 curl_easy_setopt (s->client_get, CURLOPT_CONNECTTIMEOUT_MS,
971 (long) HTTP_CLIENT_NOT_VALIDATED_TIMEOUT.rel_value); 971 (long) HTTP_CLIENT_NOT_VALIDATED_TIMEOUT.rel_value);
@@ -995,8 +995,8 @@ client_connect (struct Session *s)
995 curl_easy_setopt (s->client_put, CURLOPT_READDATA, s); 995 curl_easy_setopt (s->client_put, CURLOPT_READDATA, s);
996 curl_easy_setopt (s->client_put, CURLOPT_WRITEFUNCTION, client_receive); 996 curl_easy_setopt (s->client_put, CURLOPT_WRITEFUNCTION, client_receive);
997 curl_easy_setopt (s->client_put, CURLOPT_WRITEDATA, s); 997 curl_easy_setopt (s->client_put, CURLOPT_WRITEDATA, s);
998 curl_easy_setopt (s->client_put, CURLOPT_TIMEOUT_MS, 998 /* No timeout by default, timeout done with session timeout */
999 (long) CLIENT_SESSION_TIMEOUT.rel_value); 999 curl_easy_setopt (s->client_put, CURLOPT_TIMEOUT, 0);
1000 curl_easy_setopt (s->client_put, CURLOPT_PRIVATE, s); 1000 curl_easy_setopt (s->client_put, CURLOPT_PRIVATE, s);
1001 curl_easy_setopt (s->client_put, CURLOPT_CONNECTTIMEOUT_MS, 1001 curl_easy_setopt (s->client_put, CURLOPT_CONNECTTIMEOUT_MS,
1002 (long) HTTP_CLIENT_NOT_VALIDATED_TIMEOUT.rel_value); 1002 (long) HTTP_CLIENT_NOT_VALIDATED_TIMEOUT.rel_value);