You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Return a pooled HTTP connection to the pool only after its response has been read to the end. A request cancelled by its timeout, or by dropping its future, used to hand the connection back with the response still in flight, so the next request on that connection read the stale response instead of its own.
Reject invalid or overflowing response Content-Length values instead of falling back to idle-based body reads, and consume the entire chunked trailer section before allowing connection reuse. Truncated chunked responses now fail instead of being accepted or waiting indefinitely at EOF.
Accept chunk extensions (size;name=value) in chunked responses; they were previously rejected as invalid chunk sizes.
Changed
PooledConnection::stream now withdraws the connection from reuse; call the new PooledConnection::mark_reusable once the exchange is complete to return it to the pool. PooledConnection::invalidate keeps its meaning.