Commit Graph
4924 Commits
Author SHA1 Message Date
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
Evgeny Grin (Karlson2k) b8a3977d58 Added ability to get connection timeout by MHD_get_connection_info(). 2017-03-15 21:05:15 +03:00
Evgeny Grin (Karlson2k) 4b6e4c630d upgraded connections: removed redundant states and checks and unified processing logic.
Fixed early close in TLS thread-per-connection mode.
2017-03-15 18:20:29 +03:00
Evgeny Grin (Karlson2k) b8c844ae6a Fixed compiler warning. 2017-03-15 10:45:15 +03:00
Karlson2k 33d16aa320 Fixed regressions introduced by 4c219bf5c0 and 244ef60869 2017-03-15 10:40:35 +03:00
Evgeny Grin (Karlson2k) 244ef60869 Prevent run of MHD_run_from_select() for daemon started with wrong flags.
Maintain backward compatibility with except_fd_set set to NULL.
2017-03-15 00:53:08 +03:00
Evgeny Grin (Karlson2k) 4c219bf5c0 Prevent calling of MHD_get_fdset() and MHD_get_fdset2() for daemons with MHD_USE_INTERNAL_POLLING_THREAD,
maintain backward compatibility
2017-03-15 00:47:24 +03:00
Evgeny Grin (Karlson2k) aac2465413 Upgraded: fixed check for error state on socket 2017-03-14 22:45:44 +03:00
Evgeny Grin (Karlson2k) e6d9d82e1b mhd_sockets.h: Fixed compiler warnings 2017-03-14 22:18:55 +03:00
Evgeny Grin (Karlson2k) 6c67437c62 configure.ac: fixed typo in report text 2017-03-14 21:44:22 +03:00
Evgeny Grin (Karlson2k) 079b61496e Fixed typo in 1855c73cd3:
logic 'AND" instead of bitwise 'AND'
2017-03-14 12:42:10 +03:00
Evgeny Grin (Karlson2k) b3dff1c713 process_urh(): reorganized code so error conditions are handled before normal processing
Fixed error handling on socketpair (typo).
2017-03-14 10:41:41 +03:00
Evgeny Grin (Karlson2k) cd54b87353 process_urh(): clarified comment 2017-03-14 10:27:30 +03:00
Christian Grothoff 59268ccff1 Still there is an issue with re-open a file. Patch applied below to
avoid it.

Also iterate_post() always returns MHD_OK, because the app's logic
driven
from the value of con_info->answercode().
And in case if fwrite() fails we also update the answer code & page  and
MHD_post_process() overwrite them (fileioerror becomes postprocerror).
2017-03-14 02:41:50 +01:00
Evgeny Grin (Karlson2k) 1855c73cd3 Corrected monitor 'upgraded' sockets for errors, corrected handling of error and
streamlined forwarding processing logic.
Added some comments.
2017-03-13 23:48:17 +03:00
Evgeny Grin (Karlson2k) 8dadd66dde struct MHD_UpgradeResponseHandle: clarified comments 2017-03-13 23:41:09 +03:00
Evgeny Grin (Karlson2k) 1c9fd1b90f Fixed non-portable changes in 91548850d9
Fixed waiting for empty fd_sets in test_empty_response.c and test_https_get_select.c
2017-03-12 22:37:29 +03:00
Evgeny Grin (Karlson2k) 01ea7c7805 Fixed merge errors in ChangeLog text 2017-03-12 12:42:10 +03:00
Christian Grothoff 740a46dd36 fix largepost example, must only queue replies either before upload happens or after upload is done, not while upload is ongoing 2017-03-11 12:07:38 +01:00
Christian Grothoff 15a2570f7c fix comment syntax 2017-03-10 18:26:16 +01:00
Evgeny Grin (Karlson2k) b91d61b766 thread_main_handle_connection(): use bool wider 2017-03-10 20:12:34 +03:00
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