aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpasio.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fixed dashboard file serving bug (#255)Stefan Boberg2023-04-241-2/+3
| | | | | a recent change which introduced support for specifying accept: implicitly via the file extension in the URI caused fallout in the dashboard which would fail to serve any content because the extension was stripped from the RelativeUri accessor. This change fixes that by retaining a copy of the Uri string view which includes the suffix additionally, in order to test this change with both asio/http.sys paths I made the path used for all tests configurable in zenserver-test which involved pulling in a change from sb/proto which makes testing configuration a bit more flexible
* Support for HTTP range header (#245)Per Larsson2023-04-191-0/+17
| | | | | | | | | | | * Support for HTTP range header. * Implement http range for HTTP sys. * Validate range parameters. --------- Co-authored-by: Stefan Boberg <[email protected]>
* Fix http parsing crash (#205)Dan Engelbrecht2022-12-081-29/+36
| | | | * Don't continue parsing http requests if we get an error. * changelog
* Fix asio port sharing options (#203)Dan Engelbrecht2022-12-071-4/+26
| | | | * Windows: explicitly set the special SO_EXCLUSIVEADDRUSE flag * changelog
* Adjust errors vs warnings messages (#160)Dan Engelbrecht2022-09-081-6/+6
| | | | * demote a number of ZEN_ERROR to ZEN_WARN * changelog
* De/fix crash on non responding upstream (#145)Dan Engelbrecht2022-08-191-1/+4
| | | * Fix ZenStructuredCacheClient lifetime issues
* fixed merge mistake which caused a build errorStefan Boberg2022-06-161-1/+1
|
* asio: added some context to error reportingStefan Boberg2022-06-161-2/+8
|
* http: fixed extension parsing logicStefan Boberg2022-06-101-1/+1
| | | | the previous version did not remove the trailing dot from the extension-less URI
* asio: added some logging to indicate concurrencyStefan Boberg2022-06-071-0/+4
|
* prepare_commit to fix formattingzousar2022-02-091-6/+14
|
* Close connection if HTTP header parsing failedMartin Ridgers2022-02-041-5/+4
|
* Add comment about loopback fast path as suggested in review.zousar2022-02-021-0/+4
|
* Use SIO_LOOPBACK_FAST_PATH on Windows and increase buffer sizeszousar2022-02-011-0/+13
|
* Handle HTTP port collisions when initializing serverzousar2022-01-261-7/+15
|
* Format fix.Per Larsson2022-01-221-5/+1
|
* Converted use of _format UDL to fmt::formatMartin Ridgers2022-01-101-2/+1
|
* LLVM's libc++ cannot emplace_back(x,y,z) without a ctor(x,y,z)Martin Ridgers2022-01-071-0/+8
|
* Added missing vector includeMartin Ridgers2022-01-071-0/+1
|
* Removed unused includeMartin Ridgers2022-01-071-1/+0
|
* Merged main.Per Larsson2021-12-141-12/+25
|\
| * Merged mainMartin Ridgers2021-12-081-1/+11
| |\
| * \ Merged mainMartin Ridgers2021-12-081-1/+37
| |\ \
| * \ \ Merged mainMartin Ridgers2021-11-291-14/+37
| |\ \ \
| * \ \ \ Merged mainMartin Ridgers2021-11-251-62/+60
| |\ \ \ \
| * | | | | UINT16 -> uint16_tMartin Ridgers2021-10-251-2/+2
| | | | | |
| * | | | | Use zen::GetCurrentThreadId()Martin Ridgers2021-10-251-1/+1
| | | | | |
| * | | | | HttpAsioServer::Run() implementation for POSIX platformsMartin Ridgers2021-10-251-8/+22
| | | | | |
* | | | | | Format fix.Per Larsson2021-12-091-19/+15
| |_|_|_|/ |/| | | |
* | | | | Wrap asio call to Service->HandleRequest in try/catch like http.sys.Zousar Shaker2021-12-011-1/+11
| |_|_|/ |/| | |
* | | | Address review feedback/comments.Zousar Shaker2021-12-011-26/+32
| | | |
* | | | Handle double slashes in URL path by normalizing them away like http.sys.Zousar Shaker2021-11-301-1/+31
| |_|/ |/| | | | | | | | | | | Also treat backslashes in the path as forward slashes. Only allocate memory for the altered URL if needed.
* | | Address review feedback.Zousar Shaker2021-11-261-2/+2
| | |
* | | Fix asio bug where input of less than 16 bytes would not get consumed.Zousar Shaker2021-11-251-1/+1
| | | | | | | | | | | | This would cause hangs when the tail of a multi-part body was less than 16 bytes.
* | | Make asio trace messages controlled by a compile-time verbosity define.Zousar Shaker2021-11-251-8/+16
| | |
* | | Fix handling of packages/offers in asio mode to match http.sys mode.Zousar Shaker2021-11-251-1/+6
| | |
* | | Fix asio request routing so that a url of "/cas" will route to the service ↵Zousar Shaker2021-11-241-4/+14
| |/ |/| | | | | | | | | for prefix "/cas/". Also change the behavior for asio request routing to adhere to the "longest match rule" like http.sys.
* | Changed the asio acceptor initialization to allow dual stack IPV6Zousar Shaker2021-11-241-1/+6
| | | | | | | | connections.
* | Prevent destroying ASIO server connection until callbacks completePer Larsson2021-11-231-61/+54
|/
* Format fix.Per Larsson2021-10-201-1/+1
|
* httpasio: Implemented some handling for Expect: headerStefan Boberg2021-10-181-17/+33
| | | | | | We do not actually send a 100 CONTINUE still though since this is not necessary with the changes we made UE-side Also tweaked some of the internal request state management and added some debug logging
* httpasio: Implemented support for specifying accept type via url suffixStefan Boberg2021-10-151-3/+37
|
* httpasio: implemented proper handling of query stringsStefan Boberg2021-10-151-44/+63
| | | | Also removed fake dates from responses (there are in fact no date headers at all now)
* asio HTTP implementation (#23)Stefan Boberg2021-10-141-0/+1125
asio-based HTTP implementation