Commit Graph
2434 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 0bf9a2285e zzuf tests: make compatible with *BSD by replacing obsoleted setpgrp() with setpgid(). 2017-04-06 23:03:19 +03:00
Evgeny Grin (Karlson2k) 58274f943d Used "127.0.0.1" instead of "localhost" in all tests to avoid accidental try by IPv6 2017-04-06 22:17:04 +03:00
Evgeny Grin (Karlson2k) 8851d88e40 Fixed hypothetical situation when timeout could be larger than possible to measure.
Fixed detecting real closest timeout deadline when value wraps upper limit.
Fixed compiler warnings.
2017-04-05 23:21:59 +03:00
Evgeny Grin (Karlson2k) 076cbfbe0b daemon.c: Removed useless extra ";" 2017-04-05 18:58:57 +03:00
Evgeny Grin (Karlson2k) 3ed1305167 Updated autoinit_funcs.h to latest upstream version with proper support of Oracle/Sun compiler. 2017-04-05 14:18:58 +03:00
Evgeny Grin (Karlson2k) 0f30ecc819 Fixed wrong macro name in 218694a400 2017-04-05 13:05:12 +03:00
Evgeny Grin (Karlson2k) 218694a400 Converted many 'strlen()' from run-time to compile-time processing 2017-04-05 12:56:40 +03:00
Evgeny Grin (Karlson2k) 6ac4608cd8 digestauth.c: fixed snprintf() error detection, used calloc instead of malloc (security). 2017-04-05 11:40:59 +03:00
Evgeny Grin (Karlson2k) e30143507e Fixed some compiler warnings 2017-04-05 11:33:33 +03:00
Evgeny Grin (Karlson2k) c02d8f0332 ChangeLog: added missing entries. 2017-03-30 19:13:54 +03:00
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