Skip to content

Release v0.5.2

Latest

Choose a tag to compare

@github-actions github-actions released this 11 Sep 13:58
04b809c

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.