Evgeny Grin (Karlson2k)
8bb4ce7621
test_quiesce: added more checks and more error reports
2016-04-23 16:16:01 +00:00
Evgeny Grin (Karlson2k)
32d09c8391
MHD_quiesce_daemon(): notify other threads so listen socket FD
...
is removed from awaiting select() and poll().
2016-04-23 16:15:58 +00:00
Evgeny Grin (Karlson2k)
366a260595
Fixed race conditions for thread pool.
2016-04-22 15:03:27 +00:00
Evgeny Grin (Karlson2k)
11dc6d06af
Updated test_post.c to not ignore specific error on W32 if libcurl
...
is built with workaround for WinSock bug.
2016-04-20 18:29:38 +00:00
Evgeny Grin (Karlson2k)
ca51b35068
mhd_str.c: fixed comments
2016-04-19 19:57:54 +00:00
Evgeny Grin (Karlson2k)
c0a00bbf94
sysfdsetsize.c: fixed typo in macros,
...
fixed build with non-default FD_SETSIZE value
2016-04-19 10:41:08 +00:00
Evgeny Grin (Karlson2k)
b79c6bca0d
Added more comments about data races.
2016-04-18 21:25:56 +00:00
Evgeny Grin (Karlson2k)
49e6153824
Fixed rare situations when suspended connection can't be resumed.
2016-04-18 19:43:58 +00:00
Evgeny Grin (Karlson2k)
3b16774228
Corrected pipes for worker thread for modes without MHD_USE_SUSPEND_RESUME
2016-04-14 10:24:58 +00:00
Evgeny Grin (Karlson2k)
699c31e686
Don't create daemon if failed to make daemon control pipe non-blocking
2016-04-14 10:20:24 +00:00
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
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
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
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