aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
Commit message (Collapse)AuthorAge
* epoll: immediately notice when other side closes the socket, instead of ↵Christian Grothoff2023-02-08
| | | | waiting for timeout (fixes #7192)
* add assertion to guard against bad behavior described in #7196, also ↵Christian Grothoff2023-02-08
| | | | document that after suspending one must return MHD_YES
* Updated parsing of cookies, reject cookie completely if discipline is very ↵Evgeny Grin (Karlson2k)2022-12-22
| | | | strict
* Added new daemon option MHD_OPTION_CLIENT_DISCIPLINE_LVEvgeny Grin (Karlson2k)2022-12-22
| | | | | | | Reject URIs with spaces as per RFC. Fixed check for space before colon in headers (previously it was checked only when MHD was NOT strict). Reject HTTP/1.1 requests without host by default (as per RFC).
* connection.c: cosmeticsEvgeny Grin (Karlson2k)2022-12-21
|
* Always close connection after reply if both Content-Length and chucked are usedEvgeny Grin (Karlson2k)2022-12-19
| | | | | When both headers are used, the real length of the request may not be determined unambiguously, the start of the next request is unclear.
* Refactored cookies parsing.Evgeny Grin (Karlson2k)2022-12-19
| | | | | The new code is more compact as duplicated code was removed. Added testing for various cookies parsing strictness levels.
* parse_http_version(): cosmeticsEvgeny Grin (Karlson2k)2022-12-19
|
* connection: reject or log requests with both chunked encoding and Content-LengthEvgeny Grin (Karlson2k)2022-11-06
|
* connection: refuse requests with unsupported Transfer-EncodingEvgeny Grin (Karlson2k)2022-11-06
| | | | | The end of the request body (context) cannot be determined if Transfer-Encoding is not supported.
* Fixing missing status update after 8565e7a8a9e38ae2a2027624cc12c73ef9628f09Evgeny Grin (Karlson2k)2022-10-28
|
* epoll: make sure that connection waiting for data processing will be processedEvgeny Grin (Karlson2k)2022-10-28
|
* Missing part for f1c69db3000e65a992e33190f3d272a5b9ca7462Evgeny Grin (Karlson2k)2022-10-28
|
* connection.c: fixed handling of various errors automatically detected by MHD ↵Evgeny Grin (Karlson2k)2022-10-28
| | | | | | code Make sure that errors replies are processed correctly.
* Reworked partial processing of the uploadEvgeny Grin (Karlson2k)2022-10-22
| | | | | | | | Now if some data has been processed by Access Handler Callback, zero timeout is used for the next turn and at the same time more data is read (if available) from the network. If Access Handler Callback has not processed any data, MHD will wait for additional data to come.
* Do not send "100 Continue" if part of the request body is already receivedEvgeny Grin (Karlson2k)2022-10-22
|
* Do not send "100 Continue" if request does not have a bodyEvgeny Grin (Karlson2k)2022-10-22
|
* Renamed one more connection state for clarityEvgeny Grin (Karlson2k)2022-10-22
|
* Renamed one state in MHD_ConnectionEventLoopInfo for clarityEvgeny Grin (Karlson2k)2022-10-22
|
* Added new state for MHD_ConnectionEventLoopInfoEvgeny Grin (Karlson2k)2022-10-22
|
* New values for MHD_ConnectionEventLoopInfoEvgeny Grin (Karlson2k)2022-10-22
|
* Some readability improvementsEvgeny Grin (Karlson2k)2022-09-28
|
* connection.c: removed unused check for chunked repliesEvgeny Grin (Karlson2k)2022-09-27
|
* connection.c: added asserts for connection's states processing logicEvgeny Grin (Karlson2k)2022-09-27
|
* connection.c: fixed typo in commentEvgeny Grin (Karlson2k)2022-09-27
|
* Removed one debug member from release buildsEvgeny Grin (Karlson2k)2022-09-27
|
* Renamed request processing states for clarity and readabilityEvgeny Grin (Karlson2k)2022-09-27
|
* connection: skip no-op calling of body generation functions when response ↵Evgeny Grin (Karlson2k)2022-09-27
| | | | body is not used
* gen_auth: added support for two authorization headers in requestEvgeny Grin (Karlson2k)2022-08-09
|
* Internal refactoring: moved all reply-related members to separate structureEvgeny Grin (Karlson2k)2022-08-09
|
* Internal refactoring: moved all request-related members to separate structureEvgeny Grin (Karlson2k)2022-08-06
| | | | This should improve readability of the code and simplify reset.
* Added tracking of the request URL length.Evgeny Grin (Karlson2k)2022-06-22
| | | | | URL may have binary zeros after url-decoding, the length helps to detect such situations.
* MHD_parse_arguments_(): refactored, allow cls for the callbackEvgeny Grin (Karlson2k)2022-06-22
|
* Added TODO commentEvgeny Grin (Karlson2k)2022-06-07
|
* unsure why this was left as a TODO, fix seems trivial (EG: please check)Christian Grothoff2022-06-07
|
* -fix warningChristian Grothoff2022-06-06
|
* connection: muted compiler warningEvgeny Grin (Karlson2k)2022-06-01
|
* connection.c: fixed compiler warningsEvgeny Grin (Karlson2k)2022-05-31
|
* authentication: reworked header parsingEvgeny Grin (Karlson2k)2022-05-31
| | | | | | | | | Added single function to parse all enabled authentication schemes header strings. The parsing result is cached and reused thus avoiding repetitive header parsing. The new function correctly "unquotes" values (backslashes are removed) as required by RFC.
* connection_alloc_memory_(): made function non-staticEvgeny Grin (Karlson2k)2022-05-20
|
* MHD_connection_update_event_loop_info(): more complete TLS states handlingEvgeny Grin (Karlson2k)2022-05-16
|
* MHD_connection_handle_read(): refactored states handling at the end of the ↵Evgeny Grin (Karlson2k)2022-05-16
| | | | function
* Added missing in 'switch' enum values (no functional change)Evgeny Grin (Karlson2k)2022-05-16
|
* Fixed uninitialized value used in assertEvgeny Grin (Karlson2k)2022-05-16
|
* Use '#ifdef PARAM' instead of '#if PARAM' for configuration optionsEvgeny Grin (Karlson2k)2022-05-16
|
* Made cookie parsing optional featureEvgeny Grin (Karlson2k)2022-05-15
|
* Rewritten cookie parsing.Evgeny Grin (Karlson2k)2022-05-15
| | | | Updated to match the current RFC, fixed some edge cases.
* parse_cookie_header(): moved outside error reportingEvgeny Grin (Karlson2k)2022-05-15
|
* Return NULL for MHD_CONNECTION_INFO_CLIENT_ADDRESS if information is not ↵Evgeny Grin (Karlson2k)2022-05-14
| | | | | | available Pipe or UNIX socket connections may have no client address
* Added asserts to check for non-master daemons onlyEvgeny Grin (Karlson2k)2022-05-12
|