Commit Graph
1527 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) ec79f5e0db mhd_str: improved compatibility with older compilers, including VS2010, VS2012 2016-06-25 12:01:58 +00:00
Christian Grothoff 9bba474f7b -do not call callback if connection was already suspended 2016-06-10 00:23:30 +00:00
Christian Grothoff 69b9aa6513 -fix ftbfs 2016-06-02 09:25:39 +00:00
Christian Grothoff 3233e1386a another underflow fix 2016-06-02 07:46:10 +00:00
Christian Grothoff 0c962c0cbc -check obscure error on close() 2016-06-02 06:57:12 +00:00
Christian Grothoff 274b0c248e -fix branching, might have FD_CLR'ed -1 otherwise 2016-06-02 06:55:55 +00:00
Christian Grothoff b469d263d4 fix underflow 2016-06-02 06:53:21 +00:00
Christian Grothoff 05af4aa49c off-by-1 2016-06-01 20:13:39 +00:00
Christian Grothoff 3d0516f447 do not generate Content-Length header for 1xx/204/304 replies, also suppress transmission of message body in these cases 2016-06-01 20:02:30 +00:00
Christian Grothoff d89c55afe0 indent 2016-05-29 18:35:37 +00:00
Christian Grothoff b8a5c8d0ec -bump 2016-05-17 11:38:09 +00:00
Christian Grothoff 8a4e48c6f4 add MHD_CONNECTION_INFO_CONNECTION_SUSPENDED 2016-05-17 11:37:54 +00:00
Christian Grothoff de6e50d00e handle EMFILE, ENFILE, ENOBUF on accept 2016-05-15 10:20:04 +00:00
Christian Grothoff 2b041aea4e -fix fix 2016-05-12 06:59:56 +00:00
Christian Grothoff f2c43acacc fix epoll ready check reported by Chris Penev on the mailinglist 2016-05-12 06:45:18 +00:00
Christian Grothoff 84ec6a79ca adding logic to do 'fast' calls to read/write on a single connection without going back to the main event loop to help FE with his performance issue 2016-05-02 04:13:06 +00:00
Evgeny Grin (Karlson2k) 89d9493c84 daemon.c: OS X: set SO_NOSIGPIPE on listen socket. 2016-04-29 19:44:12 +00:00
Evgeny Grin (Karlson2k) 7f737a3f10 Properly cleanup resources in test_concurrent_stop 2016-04-24 15:16:39 +00:00
Evgeny Grin (Karlson2k) 89060147a1 test_concurrent_stop ported to use pthread instead of fork() 2016-04-23 20:20:12 +00:00
Evgeny Grin (Karlson2k) 61ad888a7b perf_get_concurrent: port to systems without fork(), added error checking 2016-04-23 20:20:09 +00:00
Evgeny Grin (Karlson2k) e275dc7398 perf_get_concurrent: correctly detect available modes 2016-04-23 17:34:53 +00:00
Evgeny Grin (Karlson2k) 1fe4a6c702 test_quiesce: do not violate our API 2016-04-23 16:16:03 +00:00
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