socketry / async-http

MIT License
298 stars 45 forks source link

Track HTTP/1 connection state so that we can avoid reusing it. #78

Closed ioquatix closed 3 years ago

ioquatix commented 3 years ago

Description

It is possible for the HTTP/1 client to get out of sync if an exception is raised during writing the request and before finishing reading the response line. If this happens, subsequent requests will potentially read the previous response body.

Types of Changes

Testing