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
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
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
fe7582e526
Updates the MHD_OPTION_URI_LOG_CALLBACK's documentation.
2017-03-07 10:42:20 -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)
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)
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)
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
Christian Grothoff
3edd4bfa7f
update gitignore files
2017-02-26 21:23:43 +01:00
Evgeny Grin (Karlson2k)
d4eece331e
microhttpd.h: re-sorted HTTP headers for better readability
2017-02-26 21:30:13 +03:00
Evgeny Grin (Karlson2k)
3211f225fa
microhttpd.h: updated HTTP methods
2017-02-26 21:12:36 +03:00
silvioprog
dd95c307b2
fix tipo: MHD_FEATURE_MESSGES -> MHD_FEATURE_MESSAGES.
2017-02-25 21:40:10 +03:00
Evgeny Grin (Karlson2k)
1c1674149b
test_get: really test ability to stop race
2017-02-25 21:23:17 +03:00
Evgeny Grin (Karlson2k)
5398d8ba64
Fixed connection states processing error introduced by 813fc203ef
2017-02-25 21:21:52 +03:00
Evgeny Grin (Karlson2k)
228df068e3
Updated code to use new HTTP status codes
2017-02-24 22:27:59 +03:00
Evgeny Grin (Karlson2k)
09f0f88e5d
response.c: silent GCC's false warning
2017-02-24 22:26:51 +03:00
Evgeny Grin (Karlson2k)
1fe42d258e
reason_phrase.c: updated copyright
2017-02-24 21:46:13 +03:00
Evgeny Grin (Karlson2k)
4b12c7f80c
reason_phrase.c: updated response phrases to latest.
2017-02-24 21:41:12 +03:00