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
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