diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-02-02 06:31:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-02-02 06:31:29 +0000 |
commit | 5ac46a90dfdf4125d03d3b605d2b7aed604a8a59 (patch) | |
tree | fa98f22e9c51f6193c6b4fd724eeb0737f96102d | |
parent | 6585ad92514d42c1238a463e4d0c5a73be19674a (diff) | |
download | libmicrohttpd-5ac46a90dfdf4125d03d3b605d2b7aed604a8a59.tar.gz libmicrohttpd-5ac46a90dfdf4125d03d3b605d2b7aed604a8a59.zip |
integrate
-rw-r--r-- | src/daemon/daemon.c | 6 | ||||
-rw-r--r-- | src/testcurl/https/Makefile.am | 8 | ||||
-rw-r--r-- | src/testcurl/https/mhds_get_test.c (renamed from src/testcurl/https/bug-test.c) | 1 |
3 files changed, 13 insertions, 2 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 4f2a5d58..d29ce4aa 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -247,7 +247,11 @@ MHD_handle_connection (void *data) | |||
247 | tv.tv_sec = 0; | 247 | tv.tv_sec = 0; |
248 | if ((con->state == MHD_CONNECTION_NORMAL_BODY_UNREADY) || | 248 | if ((con->state == MHD_CONNECTION_NORMAL_BODY_UNREADY) || |
249 | (con->state == MHD_CONNECTION_CHUNKED_BODY_UNREADY)) | 249 | (con->state == MHD_CONNECTION_CHUNKED_BODY_UNREADY)) |
250 | timeout = 1; /* do not block */ | 250 | { |
251 | /* do not block (we're waiting for our callback to succeed) */ | ||
252 | timeout = 1; | ||
253 | tv.tv_sec = 0; | ||
254 | } | ||
251 | num_ready = SELECT (max + 1, | 255 | num_ready = SELECT (max + 1, |
252 | &rs, &ws, &es, (timeout != 0) ? &tv : NULL); | 256 | &rs, &ws, &es, (timeout != 0) ? &tv : NULL); |
253 | if (num_ready < 0) | 257 | if (num_ready < 0) |
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am index 925a3a86..eeede99a 100644 --- a/src/testcurl/https/Makefile.am +++ b/src/testcurl/https/Makefile.am | |||
@@ -17,6 +17,7 @@ check_PROGRAMS = \ | |||
17 | tls_daemon_options_test \ | 17 | tls_daemon_options_test \ |
18 | tls_authentication_test \ | 18 | tls_authentication_test \ |
19 | mhds_multi_daemon_test \ | 19 | mhds_multi_daemon_test \ |
20 | mhds_get_test \ | ||
20 | mhds_session_info_test \ | 21 | mhds_session_info_test \ |
21 | tls_thread_mode_test \ | 22 | tls_thread_mode_test \ |
22 | tls_multi_thread_mode_test | 23 | tls_multi_thread_mode_test |
@@ -93,3 +94,10 @@ mhds_multi_daemon_test_LDADD = \ | |||
93 | $(top_builddir)/src/testcurl/libcurl_version_check.a \ | 94 | $(top_builddir)/src/testcurl/libcurl_version_check.a \ |
94 | $(top_builddir)/src/daemon/libmicrohttpd.la \ | 95 | $(top_builddir)/src/daemon/libmicrohttpd.la \ |
95 | @LIBCURL@ | 96 | @LIBCURL@ |
97 | |||
98 | mhds_get_test_SOURCES = \ | ||
99 | mhds_get_test.c | ||
100 | mhds_get_test_LDADD = \ | ||
101 | $(top_builddir)/src/testcurl/libcurl_version_check.a \ | ||
102 | $(top_builddir)/src/daemon/libmicrohttpd.la \ | ||
103 | @LIBCURL@ | ||
diff --git a/src/testcurl/https/bug-test.c b/src/testcurl/https/mhds_get_test.c index 8c28bea7..302c6e9a 100644 --- a/src/testcurl/https/bug-test.c +++ b/src/testcurl/https/mhds_get_test.c | |||
@@ -348,7 +348,6 @@ main (int argc, char *const *argv) | |||
348 | test_secure_get (test_fd, "AES256-SHA", CURL_SSLVERSION_TLSv1); | 348 | test_secure_get (test_fd, "AES256-SHA", CURL_SSLVERSION_TLSv1); |
349 | errorCount += | 349 | errorCount += |
350 | test_secure_get (test_fd, "AES256-SHA", CURL_SSLVERSION_SSLv3); | 350 | test_secure_get (test_fd, "AES256-SHA", CURL_SSLVERSION_SSLv3); |
351 | /* TODO resolve cipher setting issue when compiling against GNU TLS */ | ||
352 | errorCount += | 351 | errorCount += |
353 | test_cipher_option (test_fd, "DES-CBC3-SHA", CURL_SSLVERSION_TLSv1); | 352 | test_cipher_option (test_fd, "DES-CBC3-SHA", CURL_SSLVERSION_TLSv1); |
354 | 353 | ||