diff options
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist_client.c')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist_client.c b/src/hostlist/gnunet-daemon-hostlist_client.c index a973fcc28..207cc4a81 100644 --- a/src/hostlist/gnunet-daemon-hostlist_client.c +++ b/src/hostlist/gnunet-daemon-hostlist_client.c | |||
@@ -350,7 +350,7 @@ callback_download (void *ptr, | |||
350 | size_t nmemb, | 350 | size_t nmemb, |
351 | void *ctx) | 351 | void *ctx) |
352 | { | 352 | { |
353 | static char download_buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; | 353 | static char download_buffer[GNUNET_MAX_MESSAGE_SIZE - 1]; |
354 | const char *cbuf = ptr; | 354 | const char *cbuf = ptr; |
355 | const struct GNUNET_MessageHeader *msg; | 355 | const struct GNUNET_MessageHeader *msg; |
356 | struct HelloOffer *ho; | 356 | struct HelloOffer *ho; |
@@ -373,7 +373,7 @@ callback_download (void *ptr, | |||
373 | left = total; | 373 | left = total; |
374 | while ((left > 0) || (download_pos > 0)) | 374 | while ((left > 0) || (download_pos > 0)) |
375 | { | 375 | { |
376 | cpy = GNUNET_MIN (left, GNUNET_SERVER_MAX_MESSAGE_SIZE - 1 - download_pos); | 376 | cpy = GNUNET_MIN (left, GNUNET_MAX_MESSAGE_SIZE - 1 - download_pos); |
377 | GNUNET_memcpy (&download_buffer[download_pos], cbuf, cpy); | 377 | GNUNET_memcpy (&download_buffer[download_pos], cbuf, cpy); |
378 | cbuf += cpy; | 378 | cbuf += cpy; |
379 | download_pos += cpy; | 379 | download_pos += cpy; |
@@ -1042,7 +1042,7 @@ download_hostlist () | |||
1042 | #if 0 | 1042 | #if 0 |
1043 | CURL_EASY_SETOPT (curl, CURLOPT_VERBOSE, 1); | 1043 | CURL_EASY_SETOPT (curl, CURLOPT_VERBOSE, 1); |
1044 | #endif | 1044 | #endif |
1045 | CURL_EASY_SETOPT (curl, CURLOPT_BUFFERSIZE, GNUNET_SERVER_MAX_MESSAGE_SIZE); | 1045 | CURL_EASY_SETOPT (curl, CURLOPT_BUFFERSIZE, GNUNET_MAX_MESSAGE_SIZE); |
1046 | if (0 == strncmp (current_url, "http", 4)) | 1046 | if (0 == strncmp (current_url, "http", 4)) |
1047 | CURL_EASY_SETOPT (curl, CURLOPT_USERAGENT, "GNUnet"); | 1047 | CURL_EASY_SETOPT (curl, CURLOPT_USERAGENT, "GNUnet"); |
1048 | CURL_EASY_SETOPT (curl, CURLOPT_CONNECTTIMEOUT, 60L); | 1048 | CURL_EASY_SETOPT (curl, CURLOPT_CONNECTTIMEOUT, 60L); |