Commit Graph
2342 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) defb4e4d7b Fixed reset timeout on connection resume in thread-per-connection mode. 2017-03-10 20:04:43 +03:00
Evgeny Grin (Karlson2k) 9174eb844b process_urh(): process all recv() before all send() to overcome limitations on some platforms 2017-03-10 20:00:11 +03:00
Evgeny Grin (Karlson2k) 26b63fcb86 process_urh(): Rearranged comments, fixed wrong "unready" mark. 2017-03-10 20:00:11 +03:00
Christian Grothoff d946118778 fix NPE (COV 164294) 2017-03-10 16:43:57 +01:00
Christian Grothoff 91548850d9 check system call return values in tests 2017-03-10 16:40:27 +01:00
Christian Grothoff 2123decd50 fix COV 164298: integer overflow on multiplying timeout 2017-03-10 16:37:57 +01:00
Christian Grothoff 046ca77762 remove bogus check 2017-03-10 16:32:24 +01:00
Christian Grothoff 4deb335de8 avoid redundant NULL check, make MHD_cleanup_upgraded_connection_ static (only used from within daemon.c) and rename to cleanup_upgraded_connection 2017-03-10 16:29:58 +01:00
Christian Grothoff 667a974ca7 fix CID 164297: ensure -1 listen_fd is not passed to close 2017-03-10 16:26:24 +01:00
silvioprog 81425ba9c1 Updates file . 2017-03-07 12:12:30 -03:00
silvioprog fe7582e526 Updates the MHD_OPTION_URI_LOG_CALLBACK's documentation. 2017-03-07 10:42:20 -03:00
silvioprog 3e224bd925 Updated ChangeLog. 2017-03-06 21:59:09 -03:00
Christian Grothoff 6597eb93b6 fix compiler warning 2017-03-06 13:26:20 +01:00
Evgeny Grin (Karlson2k) 5d60a480a0 Fixed typos introduced by cf9bb9428f 2017-03-02 11:26:34 +03:00
Evgeny Grin (Karlson2k) 46a8b84760 Clarified comment 2017-03-01 23:49:02 +03:00
Evgeny Grin (Karlson2k) cf9bb9428f Watch "upgraded" sockets for OOB data and disconnects.
Currently states are only monitored. States processing have to be added.
2017-03-01 23:49:02 +03:00
Evgeny Grin (Karlson2k) 8314b675e5 Watch sockets for out-of-band data in select() mode too.
This even more unify select() and poll()/epoll modes.
2017-03-01 23:49:01 +03:00
silvioprog dd3da90283 i18n example: re-add useful comments as suggested by Karlson2k 2017-03-01 13:14:27 -03:00
silvioprog bf56a65a0c i18n example has been failed in some SOs, then we decided to make it as an extra dist 2017-02-28 22:36:40 -03:00
Evgeny Grin (Karlson2k) 347cbe5f10 Fixed storing pointers and integers in one union in epoll mode. 2017-02-28 23:19:21 +03:00
Evgeny Grin (Karlson2k) c36a7c7f30 Fixed attempts to accept incoming connection on shutdown of listen socket 2017-02-28 22:35:40 +03:00
silvioprog abb31c0a77 Added i18n example: msgs_i18n.c 2017-02-28 15:51:32 -03:00
Evgeny Grin (Karlson2k) 1c71436380 Fixed regression introduced by a5b2b99e4b 2017-02-28 21:39:39 +03:00
Evgeny Grin (Karlson2k) 80939fd617 Missing change in 78295468b0 2017-02-28 21:29:20 +03:00
Evgeny Grin (Karlson2k) b61517ad9b configure.ac: try to used gcrypt search path to find GnuTLS as last resort. 2017-02-28 21:01:15 +03:00
Evgeny Grin (Karlson2k) 78295468b0 Walk double-linked lists from 'tail' to 'head'.
Walking connection as "First in - First Served" gives more uniform processing time.
2017-02-28 19:51:17 +03:00
Evgeny Grin (Karlson2k) a5b2b99e4b MHD_get_timeout(): one more 'int' -> 'bool' replacement. 2017-02-28 19:30:43 +03:00
Evgeny Grin (Karlson2k) abc6bac2fb MHD_get_timeout(): fixed return of latest timeout instead of earliest. 2017-02-28 19:30:43 +03:00
Evgeny Grin (Karlson2k) 0b4e8535a3 MHD_get_timeout(): fixed incorrect timeout for TLS connections.
If connection is in "MHD_EVENT_LOOP_INFO_WRITE" mode, any pending incoming data should not
result in zero timeout.
Already handled properly by 'data_already_pending'.
Note: old check was incorrect even for "MHD_EVENT_LOOP_INFO_READ" connections as only
first connection in "normal timeout" list was checked.
2017-02-28 19:30:42 +03:00
Evgeny Grin (Karlson2k) 5cdd75f23f configure.ac: skip large GnuTLS and gcrypt tests if HTTPS is disabled 2017-02-28 17:15:44 +03:00
Evgeny Grin (Karlson2k) a44c8f339c configure.ac: fixed detection of tsearch-related functions and header.
Precompiler macro HAVE_SEARCH_H is used by code and must be appropriately defined.
2017-02-28 15:38:48 +03:00
Evgeny Grin (Karlson2k) e462a50176 autotools macros: make sure that newer local macro will not break creating 'configure' 2017-02-28 14:32:41 +03:00
Christian Grothoff dde2466a4c make sure TSEARCH macro is found 2017-02-28 04:29:03 +01:00
Evgeny Grin (Karlson2k) 2b7fe48966 Optimized epoll ready states processing:
Clear read/write ready flag when not full buffer was used by send()/recv()
2017-02-27 22:10:47 +03:00
Christian Grothoff b3a45b40e0 apply copyright header 2017-02-26 22:46:50 +01:00
Evgeny Grin (Karlson2k) d686cb0833 Fixed: EINTERRUPTED and GNUTLS_E_INTERRUPTED must not clear read/write ready flag 2017-02-27 00:24:14 +03:00
Evgeny Grin (Karlson2k) 961df2c72c process_urh(): simple optimization 2017-02-26 23:56:57 +03:00
Evgeny Grin (Karlson2k) dd2d724c19 Reworked handling "already ready" situations:
* busy-waiting for write if TLS connection is in MHD_EVENT_LOOP_INFO_WRITE mode and data is pending in TLS buffers
* removed calculation of number of TLS read-ready connections
* simplified and unified processing if any connection is in MHD_EVENT_LOOP_INFO_BLOCK mode
2017-02-26 23:46:51 +03:00
Christian Grothoff 3edd4bfa7f update gitignore files 2017-02-26 21:23:43 +01:00
Evgeny Grin (Karlson2k) d4eece331e microhttpd.h: re-sorted HTTP headers for better readability 2017-02-26 21:30:13 +03:00
Evgeny Grin (Karlson2k) 3211f225fa microhttpd.h: updated HTTP methods 2017-02-26 21:12:36 +03:00
silvioprog dd95c307b2 fix tipo: MHD_FEATURE_MESSGES -> MHD_FEATURE_MESSAGES. 2017-02-25 21:40:10 +03:00
Evgeny Grin (Karlson2k) 1c1674149b test_get: really test ability to stop race 2017-02-25 21:23:17 +03:00
Evgeny Grin (Karlson2k) 5398d8ba64 Fixed connection states processing error introduced by 813fc203ef 2017-02-25 21:21:52 +03:00
Evgeny Grin (Karlson2k) 228df068e3 Updated code to use new HTTP status codes 2017-02-24 22:27:59 +03:00
Evgeny Grin (Karlson2k) 09f0f88e5d response.c: silent GCC's false warning 2017-02-24 22:26:51 +03:00
Evgeny Grin (Karlson2k) 1fe42d258e reason_phrase.c: updated copyright 2017-02-24 21:46:13 +03:00
Evgeny Grin (Karlson2k) 4b12c7f80c reason_phrase.c: updated response phrases to latest. 2017-02-24 21:41:12 +03:00
Evgeny Grin (Karlson2k) 3ef98c28c6 reason_phrase.c: fixed unofficial spelling, shift in 3xx reasons, minor fixes 2017-02-24 21:41:11 +03:00
Evgeny Grin (Karlson2k) af2b27a7fe microhttpd.h: added HTTP header categories and source of HTTP header definition 2017-02-24 14:37:22 +03:00