diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-12 15:42:48 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-12 15:42:48 +0000 |
commit | 5c3f93df195b7f1e04ae11a23860c37954f67be9 (patch) | |
tree | 8b6a8b466cf00056474e7581974273dc2060f6bd | |
parent | eb394c314af6cd85e99aed3badea356776a55c71 (diff) | |
download | gnunet-5c3f93df195b7f1e04ae11a23860c37954f67be9.tar.gz gnunet-5c3f93df195b7f1e04ae11a23860c37954f67be9.zip |
-rw-r--r-- | src/transport/plugin_transport_http.c | 4 | ||||
-rw-r--r-- | src/transport/test_plugin_transport_http.c | 2 |
2 files changed, 5 insertions, 1 deletions
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) | |||
1076 | size_t bytes_sent; | 1076 | size_t bytes_sent; |
1077 | size_t len; | 1077 | size_t len; |
1078 | 1078 | ||
1079 | if (ps->send_active == GNUNET_NO) | ||
1080 | return CURL_READFUNC_PAUSE; | ||
1081 | |||
1082 | |||
1079 | if ((ps->pending_msgs_tail == NULL) && (ps->send_active == GNUNET_YES)) | 1083 | if ((ps->pending_msgs_tail == NULL) && (ps->send_active == GNUNET_YES)) |
1080 | { | 1084 | { |
1081 | #if DEBUG_CONNECTIONS | 1085 | #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; | |||
217 | static long long unsigned int port; | 217 | static long long unsigned int port; |
218 | 218 | ||
219 | /** | 219 | /** |
220 | * Peer's port | 220 | * Peer's addr |
221 | */ | 221 | */ |
222 | static char * test_addr; | 222 | static char * test_addr; |
223 | 223 | ||