Skip to content

hackney 4.8.3

Choose a tag to compare

@benoitc benoitc released this 27 Sep 01:55
· 6 commits to master since this release
c52f081

Fixed

  • hackney_conn:set_owner/2 works while a streamed request body is being
    sent. It returned {error, invalid_state}.
  • A response body cut short by the server closing the connection is an
    error. For a chunked or Content-Length body, body/1 returns
    {error, {closed, Partial}} with the bytes that arrived, and
    stream_body/1 and async responses end with {error, closed}. They
    reported a short body as complete. A body with neither still ends when the
    connection closes.
  • An HTTPS request through a CONNECT proxy reached over TLS
    ({proxy_transport, ssl}) works. The target TLS handshake ran over the
    proxy TLS socket as if it were plain TCP and failed.
  • A pooled connection from hackney:connect/* stays with its caller between
    requests, and hackney:close/1 checks it back into the pool. It went back
    to the pool after every response while the caller still used it, so the
    pool could stop it in the middle of the next request ({error, closed})
    or lend it to another process.