[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23040 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23040 - gnunet/src/gns |
Date: |
Thu, 2 Aug 2012 18:35:55 +0200 |
Author: schanzen
Date: 2012-08-02 18:35:55 +0200 (Thu, 02 Aug 2012)
New Revision: 23040
Modified:
gnunet/src/gns/gnunet-gns-proxy.c
Log:
-handle race
Modified: gnunet/src/gns/gnunet-gns-proxy.c
===================================================================
--- gnunet/src/gns/gnunet-gns-proxy.c 2012-08-02 16:28:00 UTC (rev 23039)
+++ gnunet/src/gns/gnunet-gns-proxy.c 2012-08-02 16:35:55 UTC (rev 23040)
@@ -528,6 +528,9 @@
{
return MHD_NO;
}
+
+ if (NULL != ctask->curl)
+ curl_easy_pause (ctask->curl, CURLPAUSE_SEND);
if (0 == off)
{
@@ -1096,7 +1099,7 @@
ctask->buf_status = BUF_WAIT_FOR_CURL;
if (NULL != ctask->curl)
- curl_easy_pause (ctask->curl, CURLPAUSE_CONT);
+ curl_easy_pause (ctask->curl, CURLPAUSE_RECV);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"MHD: copied %d bytes\n", copied);
@@ -1293,7 +1296,7 @@
"CURL: read callback\n");
if (NULL == pdata)
- return 0;
+ return CURL_READFUNC_PAUSE;
//fin
if (NULL == pdata->value)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23040 - gnunet/src/gns,
gnunet <=