mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-01 05:02:29 +07:00
process_request reads the response even after write_request fails, so that an early response (e.g. 413/414) sent while the body is still being uploaded is not lost. A request line or header rejected while the request is being built in memory never reaches the socket, though, so no response will come and the client blocked until the read timeout (or until the server closed the idle connection). write_request now reports such a local rejection, and process_request returns immediately in that case. Socket write failures still read the response as before.