Christian Grothoff
63721c720a
must pass size_t to default_handler
2017-03-29 14:13:34 +02:00
Christian Grothoff
3c2727fcea
add document encoding hint
2017-03-29 14:09:06 +02:00
Evgeny Grin (Karlson2k)
325ddd08f4
Simplified VS projects files
2017-03-27 16:05:25 +03:00
Evgeny Grin (Karlson2k)
8fa8f78307
Added VS2017 project files
2017-03-27 15:28:36 +03:00
Evgeny Grin (Karlson2k)
9a18334bb6
Fixed non-TLS builds after 7b0d92902c
2017-03-27 15:28:14 +03:00
Evgeny Grin (Karlson2k)
6d1ae16af9
MHD_start_daemon(): fixed c/p error resulted in nonfunctional SO_EXCLBIND on Solaris
2017-03-26 22:45:12 +03:00
Evgeny Grin (Karlson2k)
d54da541b4
configure: improved detection and usage of 'librt'
2017-03-26 22:22:38 +03:00
Evgeny Grin (Karlson2k)
25d381f4c0
Fixed MHD_quiesce_daemon() after 7b0d92902c
2017-03-26 22:22:34 +03:00
Evgeny Grin (Karlson2k)
6f6a4e220b
MHD_start_daemon(): obey MHD_USE_ITC in thread pool mode
2017-03-26 13:52:13 +03:00
Evgeny Grin (Karlson2k)
7b0d92902c
MHD_start_daemon(): removed initialisation of ITC for master daemon in thread pool mode
...
as global ITC is not monitored.
Fixed gnutls priorities deinitialization if ITC failed
2017-03-26 13:45:05 +03:00
Evgeny Grin (Karlson2k)
c14c7bb6f1
MHD_select(): Removed bogus extra check
2017-03-26 13:45:05 +03:00
Evgeny Grin (Karlson2k)
8cdcc7806b
Streamlined internal usage of MHD_USE_ITC flag.
2017-03-26 13:45:04 +03:00
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