Commit Graph
2412 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) b5bfa6ee2c Simplification: move external loop specific code from internal_run_from_select() to
MHD_run_from_select().
2017-03-26 13:45:04 +03:00
Evgeny Grin (Karlson2k) ab04f53b95 Simplified checks for allowed suspend, fixed false positive for daemons with MHD_USE_ITC 2017-03-26 13:45:04 +03:00
Evgeny Grin (Karlson2k) ad75fbc085 MHD_start_daemon_va(): unify 'flags' and 'daemon->options' usage 2017-03-26 13:45:04 +03:00
Christian Grothoff 11fc9224bd remove dead code converting hex number to size_t 2017-03-25 20:59:16 +01:00
Christian Grothoff b8e9408180 do not fail if MHD_OPTION_THREAD_POOL_SIZE is specified as 0 or 1 in combination with internal polling, that's OK (as a pool size of 0/1 means no pool) 2017-03-25 20:55:33 +01:00
Christian Grothoff bf7418b3d9 fix #4967 2017-03-25 20:55:32 +01:00
Evgeny Grin (Karlson2k) 8d9065a077 MHD_start_daemon(): check for invalid combination of MHD_USE_NO_LISTEN_SOCKET and
MHD_OPTION_LISTEN_SOCKET
2017-03-25 21:01:13 +03:00
Evgeny Grin (Karlson2k) 0571f7bf52 Check for invalid combinations of MHD_OPTION_THREAD_POOL_SIZE and daemon flags. 2017-03-24 15:44:27 +03:00
Evgeny Grin (Karlson2k) 65e7a45faa Ignore "1" and "0" as thread pool sizes, do not create thread pools and warn user. 2017-03-24 15:33:58 +03:00
Evgeny Grin (Karlson2k) efa08edf97 Do not fail on full read buffer if connection was resumed too quick after suspend 2017-03-23 15:38:29 +03:00
Christian Grothoff 931a023922 use static, parens 2017-03-23 09:25:33 +01:00
Evgeny Grin (Karlson2k) cdcc0126c6 Revert commit 0bc2fe6fe7.
Connection moved to the end of timeout list in resume_suspended_connections(),
moreover suspended connections are not in DL-list (XDLL_remove may break something) and
timeout DL-list is not maintained in thread-per-connection mode

No need to use 'just_resumed': if connection is suspended again in first DH function,
MHD_connection_update_event_loop_info will be called with 'suspended' flag set.
2017-03-22 23:15:34 +03:00
Evgeny Grin (Karlson2k) 7e1123665e Fixed docs as suggested by Vitaliy T 2017-03-22 23:01:06 +03:00
Evgeny Grin (Karlson2k) 9b2ca1e6e5 mhd_shutdown_socket_trigger.m4: used more reliable method if gettimeofday() is not available.
Fixed interpretation of very short time periods.
2017-03-22 00:07:36 +03:00
Christian Grothoff 0bc2fe6fe7 add -lrt for glib 2017-03-21 14:23:25 +01:00
Christian Grothoff 7aa69301bd add -lrt for glibc < 2.17 compatibility 2017-03-21 14:22:20 +01:00
Christian Grothoff 6b03d68f07 document MHD_CONNECTION_INFO_CONNECTION_TIMEOUT in manual 2017-03-21 14:15:52 +01:00
Christian Grothoff 93fad63d2b make error message more friendly 2017-03-21 14:15:52 +01:00
Christian Grothoff 222acd1c5a clarify when it is ok to call MHD_get_fdset in documentation, document MHD_get_fdset2() 2017-03-21 14:15:52 +01:00
Christian Grothoff d14c6aa0f7 style fixes to i18n example 2017-03-21 14:15:52 +01:00
Evgeny Grin (Karlson2k) f3dd2a6303 Added autoconf module for detection of select() trigger on shutdown of listening socket. 2017-03-20 00:56:19 +03:00
Evgeny Grin (Karlson2k) e3ce8fdf57 Rewritten logic of handling "upgraded" TLS connections in epoll mode. 2017-03-19 14:16:36 +03:00
Evgeny Grin (Karlson2k) d93a774bd6 MHD_connection_epoll_update_(): updated and simplified conditions required
to move connection back to epoll monitoring.
2017-03-19 12:09:19 +03:00
Evgeny Grin (Karlson2k) 192f1e9fab call_handlers(): added clarifying comment. 2017-03-19 11:46:22 +03:00
Evgeny Grin (Karlson2k) 9fec9b35ec Do not fail on overflown read buffer while connection is suspended. 2017-03-17 10:52:38 +03:00
Evgeny Grin (Karlson2k) a10c64c793 Revert "MHD_run_from_select(): removed ability to run epoll"
This partially reverts commit 875e27c51b.
2017-03-16 23:52:35 +03:00
Evgeny Grin (Karlson2k) 88fee01b55 Fixed logic of idle disconnection: connection should be disconnected not early than "timeout",
not before "timeout" number of seconds.
2017-03-16 23:14:35 +03:00
Evgeny Grin (Karlson2k) 9333188824 Updated ChangeLog 2017-03-16 22:43:47 +03:00
Evgeny Grin (Karlson2k) 0a0533358b Fixed reset of timeout timer on resumed connections. 2017-03-16 22:43:47 +03:00
Evgeny Grin (Karlson2k) 396aab2e11 Do not update last activity time on connections without timeout timer 2017-03-16 22:43:47 +03:00
Evgeny Grin (Karlson2k) 605bb70bde HTTPS connection: fixed double processing of timeout 2017-03-16 22:03:49 +03:00
Evgeny Grin (Karlson2k) ac82c4d331 Improved thread-safe for MHD_set_connection_option() 2017-03-16 21:58:16 +03:00
Evgeny Grin (Karlson2k) 76500135fe Update connection last activity if and only if any data was received or transmitted. 2017-03-16 21:48:59 +03:00
Evgeny Grin (Karlson2k) 7d4e3953b7 Unified update of connection activity. 2017-03-16 21:28:32 +03:00
Evgeny Grin (Karlson2k) 589983325b run_tls_handshake(): fixed wrong return value resulting in slower TLS connection setup 2017-03-16 21:06:27 +03:00
Evgeny Grin (Karlson2k) 88374e04d2 Thread-safety: always lock mutex when modifying "cleanup" or "timeout" DL-lists 2017-03-16 20:39:58 +03:00
Evgeny Grin (Karlson2k) 53ffa66992 Do not disconnect suspended HTTPS connections by timeout. 2017-03-16 20:39:58 +03:00
Evgeny Grin (Karlson2k) 5e099343f2 MHD_tls_connection_handle_idle(): do not need to explicitly handle data pending in TLS buffers
Data from TLS buffers handled automatically by read/write functions.
2017-03-16 18:43:53 +03:00
Evgeny Grin (Karlson2k) 7764a946fd Fixed thread-safety of MHD_get_daemon_info() for MHD_DAEMON_INFO_CURRENT_CONNECTIONS,
Updated MHD_DAEMON_INFO_CURRENT_CONNECTIONS description
2017-03-16 17:57:46 +03:00
Evgeny Grin (Karlson2k) b3e48b5090 Fixed compiler warnings, updated ChangeLog. 2017-03-16 17:04:08 +03:00
Evgeny Grin (Karlson2k) 3f9f4d8b53 test_upgrade: fixed test with 'auto' flags 2017-03-16 15:23:32 +03:00
Evgeny Grin (Karlson2k) 77bc810355 Added MHD_DAEMON_INFO_FLAGS to get daemon's flags by MHD_get_daemon_info() 2017-03-16 14:55:53 +03:00
Evgeny Grin (Karlson2k) 6bd7866d21 union MHD_DaemonInfo: added epoll_fd to clearly use with epoll FD 2017-03-16 13:39:31 +03:00
Evgeny Grin (Karlson2k) de8217492b MHD_connection_handle_idle(): fixed missing bracket 2017-03-16 00:26:22 +03:00
Evgeny Grin (Karlson2k) 4f9c0097f1 Added missing EPOLLPRI in MHD_connection_epoll_update_() 2017-03-16 00:21:11 +03:00
Evgeny Grin (Karlson2k) 875e27c51b MHD_run_from_select(): removed ability to run epoll
fd_sets don not provide any useful information for epoll, so MHD_run() should be used
for epoll-based daemons.
2017-03-15 23:36:27 +03:00
Evgeny Grin (Karlson2k) 681000855a MHD_connection_handle_idle(): better handle suspended connections,
prevent suspended connection closure by timeout.
2017-03-15 23:22:44 +03:00
Evgeny Grin (Karlson2k) 0934cb436b MHD_connection_handle_idle(): one more missing reset of 'connection->in_idle' 2017-03-15 23:01:08 +03:00
Evgeny Grin (Karlson2k) 96aabc147d MHD_connection_handle_idle(): fixed reset of 'connection->in_idle' to false 2017-03-15 22:26:08 +03:00
Evgeny Grin (Karlson2k) afb221c32a Improved thread-safety with suspended connections. 2017-03-15 21:34:59 +03:00