From: Matthias Wachs Date: Mon, 12 Jul 2010 15:42:48 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~20964 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5c3f93df195b7f1e04ae11a23860c37954f67be9;p=oweals%2Fgnunet.git --- diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 9944791d7..3440aaa3c 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -1076,6 +1076,10 @@ static size_t curl_send_cb(void *stream, size_t size, size_t nmemb, void *ptr) size_t bytes_sent; size_t len; + if (ps->send_active == GNUNET_NO) + return CURL_READFUNC_PAUSE; + + if ((ps->pending_msgs_tail == NULL) && (ps->send_active == GNUNET_YES)) { #if DEBUG_CONNECTIONS diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 3fa2d18a9..2970cfbf1 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c @@ -217,7 +217,7 @@ static struct GNUNET_CRYPTO_RsaPrivateKey *my_private_key; static long long unsigned int port; /** - * Peer's port + * Peer's addr */ static char * test_addr;