Commit Graph
1866 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 71b73eca6a Free pipes if worker thread initialization fails 2016-04-14 10:20:22 +00:00
Evgeny Grin (Karlson2k) 52fb224d50 Make pipe non-blocking for tread pool 2016-04-14 10:20:19 +00:00
Evgeny Grin (Karlson2k) a01de4d736 digestauth.c: removed unused variable 2016-04-12 21:52:36 +00:00
Evgeny Grin (Karlson2k) f5393bb0dd Fixed handling of caller-supplied socket with MHD_OPTION_LISTEN_SOCKET.
Was regression in 0.9.49.
2016-04-12 21:52:33 +00:00
Evgeny Grin (Karlson2k) 67a2d40e51 Testsuite: ignore specific test_post errors on W32 until libcurl will merge workaround 2016-04-12 15:01:18 +00:00
Evgeny Grin (Karlson2k) 661a5ee03c MHD_digest_auth_check(): used internal function to decode nc, fixed incorrect check
(should be 'ULONG_MAX', not 'LONG_MAX'), new check is more strict.
Function should be more secure now.
2016-04-12 14:36:16 +00:00
Evgeny Grin (Karlson2k) 8632cd8c4b MHD_digest_auth_check(): decode timestamp value by internal function, added error checking,
added buffer overrun checking.
digest auth now should be more secure
2016-04-12 14:36:14 +00:00
Evgeny Grin (Karlson2k) 095d09c986 mhd_str: added MHD_strx_to_uint32_(), MHD_strx_to_uint32_n_(), MHD_strx_to_uint64_() and
MHD_strx_to_uint64_n_() functions
2016-04-12 14:36:11 +00:00
Evgeny Grin (Karlson2k) 36d82b1a0d connection.c: used internal US-ASCII-only hex string -> value conversion 2016-04-12 14:36:09 +00:00
Evgeny Grin (Karlson2k) 665fd0c24a mhd_str: added hex string to value conversion functions 2016-04-12 14:36:06 +00:00
Evgeny Grin (Karlson2k) 6352a326c0 struct MHD_NonceNc: use uint64_t for counter.
This produce same result on all platforms.
2016-04-12 12:53:24 +00:00
Evgeny Grin (Karlson2k) 69a35bc3a0 connection.c: removed unused variable, silent compiler warning 2016-04-12 12:53:21 +00:00
Evgeny Grin (Karlson2k) 8107709672 mhd_str.c: cosmetics, corrected comments 2016-04-12 11:50:06 +00:00
Evgeny Grin (Karlson2k) dc854bdfcf mhd_str: refactored MHD_str_to_uint64() and MHD_str_to_uint64_n_() for simplification, more
error checking and optimization
2016-04-12 11:01:36 +00:00
Evgeny Grin (Karlson2k) 19a9f06eea mhd_str: fixed typo in comment 2016-04-11 20:09:39 +00:00
Evgeny Grin (Karlson2k) 3ccf5b0b34 parse_connection_headers(): fixed uploading by POST files larger then LONG_MAX 2016-04-11 20:07:39 +00:00
Evgeny Grin (Karlson2k) aff8b7214b mhd_str: added MHD_str_to_uint64_() and MHD_str_to_uint64_n_() functions for US-ASCII-only
operations, independently on locale
2016-04-11 20:07:36 +00:00
Evgeny Grin (Karlson2k) dc1eb9a9d7 largepost.c: corrected const pointer to const char 2016-04-11 14:52:17 +00:00
Evgeny Grin (Karlson2k) d4d4393a16 Added check result of MHD_post_process() in largepost.c 2016-04-11 14:08:30 +00:00
Evgeny Grin (Karlson2k) 5ad31494eb VS projects: added largepost.c example 2016-04-11 14:08:28 +00:00
Evgeny Grin (Karlson2k) b3a9a6be7f VS projects: added simplepost.c example 2016-04-11 14:08:24 +00:00
Evgeny Grin (Karlson2k) 5f5447afa0 VS projects updated: cleanup, renamed file 2016-04-11 14:08:21 +00:00
Evgeny Grin (Karlson2k) 2cf1ffafba largepost.c: fixed compiling by VS 2016-04-11 14:08:18 +00:00
Evgeny Grin (Karlson2k) 9c113d780a simplepost.c: fixed compiling with VS before 2015 2016-04-11 14:08:15 +00:00
Christian Grothoff 3f856f555b -indent 2016-04-10 21:30:03 +00:00
Evgeny Grin (Karlson2k) 958b711b3b Corrected typos in comments 2016-04-10 20:24:40 +00:00
Evgeny Grin (Karlson2k) ff21b86d1a Use less locking with MHD_USE_THREAD_PER_CONNECTION.
Do not maintain global list out timeouts as each thread use individual timeout.
As result - global mutex is not acquired after each single send()/recv().
2016-04-10 19:12:37 +00:00
Evgeny Grin (Karlson2k) cf295a42e2 Silent compiler warning 2016-04-10 09:42:35 +00:00
Evgeny Grin (Karlson2k) ed74ec9db8 Releasing 0.9.49 2016-04-09 13:08:05 +00:00
Christian Grothoff 94c0fd7183 one variable per line 2016-04-08 19:04:01 +00:00
Evgeny Grin (Karlson2k) 085bc84505 Reworked calling shutdown() on connections:
Now called on all platforms (including W32), called only with SHUT_WR,
except in close_all_connections() where shutdown() called with SHUT_RDWR.
This should increase chances of graceful disconnection.
2016-04-08 18:40:58 +00:00
Evgeny Grin (Karlson2k) 1057677e86 connection.c: remove unneeded check in try_ready_normal_body() 2016-04-08 16:31:10 +00:00
Evgeny Grin (Karlson2k) 1476b01284 platform_interface.h: fix possible NULL pointer dereference on Win32 2016-04-08 16:31:08 +00:00
Evgeny Grin (Karlson2k) 1226d45eba Check result of snprintf() in basicauth.c and digestauth.c, log more errors 2016-04-08 16:31:05 +00:00
Evgeny Grin (Karlson2k) 6096c8a88e daemon.c: remove unused variable in MHD_handle_connection() 2016-04-08 16:31:03 +00:00
Evgeny Grin (Karlson2k) 6ec74bd8eb connection.c: fix using uninitialized variable in build_header_response() 2016-04-08 16:31:00 +00:00
Christian Grothoff 65f91e3293 fix #4233 2016-04-02 23:05:53 +00:00
Christian Grothoff 1e9240c3e0 fix #4235 2016-04-02 23:03:06 +00:00
Evgeny Grin (Karlson2k) e198febcf8 Fix testsuite compiler warnings on W32 2016-03-26 00:38:26 +00:00
Christian Grothoff c39414cdc7 Dan Dedrick wrote:
If pthread_create fails for some reason we need to not access the
thread pointer as it will not be valid. Without this check a failed
return code from pthread_create would cause a SIGSEGV to occur.

An instance that pthread_create could fail is if enough connections were
established that we ran out of space in our mapping to create another
thread stack. Specifically I have seen this occur with
systemd-journal-gatewayd where there was a bug with not releasing
connections after they had disconnected. I submitted a fix for that
here: https://github.com/systemd/systemd/pull/2287 but it would really
be best if libmicrohttpd didn't SIGSEGV under these conditions.
2016-03-15 20:54:16 +00:00
Christian Grothoff c932ba77fd fix unnecessary and potentially problematic use of eready DLL in thread-per-connection mode 2016-03-15 19:31:42 +00:00
Christian Grothoff d3b17d3b19 -Fabian Mewes:
Fix the out-of-bound read of the NUL byte using strlen() in
microhttpd/daemon.c:MHD_init_daemon_certificate()

Fix the out-of-bound read of the NUL byte using strlen() in
microhttpd/daemon.c:MHD_init_daemon_certificate()
2016-02-29 12:27:57 +00:00
Christian Grothoff 601164fa35 -fix as suggested by EG 2016-02-22 13:56:26 +00:00
Christian Grothoff dcde217787 -missunderstanding test... 2016-02-22 09:34:46 +00:00
Christian Grothoff 8eb1cd31f5 -these tests should pass even if we do not have listen-shutdown 2016-02-22 09:32:30 +00:00
Christian Grothoff 8d83647523 -check for versions, report tests as skipped if versions missmatch 2016-02-20 12:30:43 +00:00
Christian Grothoff a624909415 be more forceful about stopping test clients 2016-02-20 12:16:40 +00:00
Evgeny Grin (Karlson2k) 6bda5e7fa7 Added more detailed description for test_shutdown_select.c 2016-02-19 15:32:37 +00:00
Evgeny Grin (Karlson2k) e500b2830d Really fixed Makefile for poll test 2016-02-06 10:37:44 +00:00
Evgeny Grin (Karlson2k) 25da66197c fixed Makefile for poll test 2016-02-05 21:25:12 +00:00