Commit Graph
4924 Commits
Author SHA1 Message Date
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
Evgeny Grin (Karlson2k) 1912481d1e microhttpd.h: update HTTP headers to latest specification 2017-02-23 22:41:23 +03:00
Evgeny Grin (Karlson2k) a466152e0d microhttpd.h: updated HTTP response codes according to HTTP Status Code Registry 2017-02-23 21:22:39 +03:00
Christian Grothoff 0bf22e8553 fix #4911 2017-02-23 12:20:58 +01:00
Evgeny Grin (Karlson2k) 813fc203ef call_handlers(): always call idle_handler() after each read/write. This allow to process both
read and write at single call_handlers() invocation if readability and writeability are
both known (epoll mode).
Simplified checks for 'fast track' mode.
2017-02-21 21:34:39 +03:00
Evgeny Grin (Karlson2k) 0e0822dd3e call_handlers(): call read/write handlers only if connections is in read/write mode 2017-02-19 23:10:51 +03:00
Evgeny Grin (Karlson2k) 58cb96811c MHD_epoll(): call handler depending on read/write ready state instead of loop state. 2017-02-19 23:10:51 +03:00
Evgeny Grin (Karlson2k) d9b6e400f8 Changed poll()/select()/epoll monitoring logic:
connections monitored for incoming data only when expecting any incoming data;
connections always monitored for disconnection and out-of-band data;
connections are closed faster in case of any error conditions;
fixed non-zero timeout in poll() mode with MHD_EVENT_LOOP_INFO_BLOCK connections.
2017-02-19 23:03:35 +03:00
Evgeny Grin (Karlson2k) b473e12131 call_handlers(): use 'bool' type for parameters 2017-02-19 19:08:58 +03:00
Evgeny Grin (Karlson2k) f05715b71f call_handlers(): no need to call read or write handler in case of hard error 2017-02-19 19:00:23 +03:00
Evgeny Grin (Karlson2k) 0c8a6adb18 Simplified checks for internal polling thread. 2017-02-19 18:37:55 +03:00
Christian Grothoff 1689dae34a remove gl_ prefix, seems to help silioprog 2017-02-19 11:57:56 +01:00
Christian Grothoff 82d65c48ed replace tsearch test with code from gnulib, to hopefully address silviprog's android problems 2017-02-16 11:20:50 +01:00
Christian Grothoff f154b0ef88 bump dates and versions and update ChangeLog 2017-02-15 13:38:06 +01:00
Christian Grothoff d6dd85a3e6 convert client_aware to 'bool' 2017-02-15 13:34:22 +01:00
Christian Grothoff d170754b7d convert tls_closed to 'bool' 2017-02-15 13:32:39 +01:00
Christian Grothoff 925adb3889 convert clean_ready to 'bool' 2017-02-15 13:31:36 +01:00
Christian Grothoff e5fd7e14da convert have_dhparams to 'bool' 2017-02-15 13:29:18 +01:00
Christian Grothoff 3b2c0e1436 convert upgrade_fd_in_epoll to 'bool' 2017-02-15 13:28:32 +01:00