From 5c3f93df195b7f1e04ae11a23860c37954f67be9 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 12 Jul 2010 15:42:48 +0000 Subject: [PATCH] --- src/transport/plugin_transport_http.c | 4 ++++ src/transport/test_plugin_transport_http.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.25.1