Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http_client: mark connection as non-reuseable on failure
flb_http_client supports internal buffer size limit. If server tries to send more data than the maximum size limit, the client will refuse to receive it. This behaviour is problematic when combined with keep-alive mode; Since flb_http_do() can leave some data in the socket, the next HTTP request can be confused by the leftover. For example, if the socket has the following data (unread): "data":["from", "previous", "conn"]} The next HTTP request will see the following response: "data":["from", "previous", "conn"]}HTTP/1.1 200 OK Content-Type: text/html Accept-Ranges: bytes Last-Modified: Sat, 30 May 2020 23:47:16 GMT ... Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>
- Loading branch information