aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2012-08-02 16:35:55 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2012-08-02 16:35:55 +0000
commit34b5d8894e70f40df43485385c331b45757920d7 (patch)
treea0841e08f930bf1be47cb15409d9e47bd8c4e6e6 /src/gns
parent402e6b4fabeebdbdcb8a0c4d6ccd779fa771917d (diff)
downloadgnunet-34b5d8894e70f40df43485385c331b45757920d7.tar.gz
gnunet-34b5d8894e70f40df43485385c331b45757920d7.zip
-handle race
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/gnunet-gns-proxy.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index 4a8c40cfb..12a95c955 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -528,6 +528,9 @@ con_post_data_iter (void *cls,
528 { 528 {
529 return MHD_NO; 529 return MHD_NO;
530 } 530 }
531
532 if (NULL != ctask->curl)
533 curl_easy_pause (ctask->curl, CURLPAUSE_SEND);
531 534
532 if (0 == off) 535 if (0 == off)
533 { 536 {
@@ -1096,7 +1099,7 @@ mhd_content_cb (void *cls,
1096 ctask->buf_status = BUF_WAIT_FOR_CURL; 1099 ctask->buf_status = BUF_WAIT_FOR_CURL;
1097 1100
1098 if (NULL != ctask->curl) 1101 if (NULL != ctask->curl)
1099 curl_easy_pause (ctask->curl, CURLPAUSE_CONT); 1102 curl_easy_pause (ctask->curl, CURLPAUSE_RECV);
1100 1103
1101 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1104 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1102 "MHD: copied %d bytes\n", copied); 1105 "MHD: copied %d bytes\n", copied);
@@ -1293,7 +1296,7 @@ read_callback (void *buf, size_t size, size_t nmemb, void *cls)
1293 "CURL: read callback\n"); 1296 "CURL: read callback\n");
1294 1297
1295 if (NULL == pdata) 1298 if (NULL == pdata)
1296 return 0; 1299 return CURL_READFUNC_PAUSE;
1297 1300
1298 //fin 1301 //fin
1299 if (NULL == pdata->value) 1302 if (NULL == pdata->value)