Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Oct 31, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
httpcore ==0.13.7 -> ==1.0.2 age adoption passing confidence

Release Notes

encode/httpcore (httpcore)

v1.0.2

Compare Source

  • Fix float("inf") timeouts in Event.wait function. (#​846)

v1.0.1

Compare Source

  • Fix pool timeout to account for the total time spent retrying. (#​823)
  • Raise a neater RuntimeError when the correct async deps are not installed. (#​826)
  • Add support for synchronous TLS-in-TLS streams. (#​840)

v1.0.0

Compare Source

From version 1.0 our async support is now optional, as the package has minimal dependencies by default.

For async support use either pip install 'httpcore[asyncio]' or pip install 'httpcore[trio]'.

The project versioning policy is now explicitly governed by SEMVER. See https://semver.org/.

  • Async support becomes fully optional. (#​809)
  • Add support for Python 3.12. (#​807)

v0.18.0

Compare Source

  • Add support for HTTPS proxies. (#​745, #​786)
  • Drop Python 3.7 support. (#​727)
  • Handle sni_hostname extension with SOCKS proxy. (#​774)
  • Handle HTTP/1.1 half-closed connections gracefully. (#​641)
  • Change the type of Extensions from Mapping[Str, Any] to MutableMapping[Str, Any]. (#​762)

v0.17.3

Compare Source

  • Support async cancellations, ensuring that the connection pool is left in a clean state when cancellations occur. (#​726)
  • The networking backend interface has been added to the public API. Some classes which were previously private implementation detail are now part of the top-level public API. (#​699)
  • Graceful handling of HTTP/2 GoAway frames, with requests being transparently retried on a new connection. (#​730)
  • Add exceptions when a synchronous trace callback is passed to an asynchronous request or an asynchronous trace callback is passed to a synchronous request. (#​717)
  • Drop Python 3.7 support. (#​727)

v0.17.2

Compare Source

  • Add socket_options argument to ConnectionPool and HTTProxy classes. (#​668)
  • Improve logging with per-module logger names. (#​690)
  • Add sni_hostname request extension. (#​696)
  • Resolve race condition during import of anyio package. (#​692)
  • Enable TCP_NODELAY for all synchronous sockets. (#​651)

v0.17.1

Compare Source

  • If 'retries' is set, then allow retries if an SSL handshake error occurs. (#​669)
  • Improve correctness of tracebacks on network exceptions, by raising properly chained exceptions. (#​678)
  • Prevent connection-hanging behaviour when HTTP/2 connections are closed by a server-sent 'GoAway' frame. (#​679)
  • Fix edge-case exception when removing requests from the connection pool. (#​680)
  • Fix pool timeout edge-case. (#​688)

v0.17.0

Compare Source

  • Add DEBUG level logging. (#​648)
  • Respect HTTP/2 max concurrent streams when settings updates are sent by server. (#​652)
  • Increase the allowable HTTP header size to 100kB. (#​647)
  • Add retries option to SOCKS proxy classes. (#​643)

v0.16.3

Compare Source

  • Allow ws and wss schemes. Allows us to properly support websocket upgrade connections. (#​625)
  • Forwarding HTTP proxies use a connection-per-remote-host. Required by some proxy implementations. (#​637)
  • Don't raise RuntimeError when closing a connection pool with active connections. Removes some error cases when cancellations are used. (#​631)
  • Lazy import anyio, so that it's no longer a hard dependancy, and isn't imported if unused. (#​639)

v0.16.2

Compare Source

  • Revert 'Fix async cancellation behaviour', which introduced race conditions. (#​627)
  • Raise RuntimeError if attempting to us UNIX domain sockets on Windows. (#​619)

v0.16.1

Compare Source

  • Fix HTTP/1.1 interim informational responses, such as "100 Continue". (#​605)

v0.16.0

Compare Source

  • Support HTTP/1.1 informational responses. (#​581)
  • Fix async cancellation behaviour. (#​580)
  • Support h11 0.14. (#​579)

v0.15.0

Compare Source

  • Drop Python 3.6 support (#​535)
  • Ensure HTTP proxy CONNECT requests include timeout configuration. (#​506)
  • Switch to explicit typing.Optional for type hints. (#​513)
  • For trio map OSError exceptions to ConnectError. (#​543)

v0.14.7

Compare Source

  • Requests which raise a PoolTimeout need to be removed from the pool queue. (#​502)
  • Fix AttributeError that happened when Socks5Connection were terminated. (#​501)

v0.14.6

Compare Source

  • Fix SOCKS support for http:// URLs. (#​492)
  • Resolve race condition around exceptions during streaming a response. (#​491)

v0.14.5

Compare Source

  • SOCKS proxy support. (#​478)
  • Add proxy_auth argument to HTTPProxy. (#​481)
  • Improve error message on 'RemoteProtocolError' exception when server disconnects without sending a response. (#​479)

v0.14.4

Compare Source

v0.14.3

Compare Source

  • Fix race condition when removing closed connections from the pool. (#​437)

v0.14.2

Compare Source

  • Failed connections no longer remain in the pool. (Pull #​433)

v0.14.1

Compare Source

  • max_connections becomes optional. (Pull #​429)
  • certifi is now included in the install dependancies. (Pull #​428)
  • h2 is now strictly optional. (Pull #​428)

v0.14.0

Compare Source

The 0.14 release is a complete reworking of httpcore, comprehensively addressing some underlying issues in the connection pooling, as well as substantially redesigning the API to be more user friendly.

Some of the lower-level API design also makes the components more easily testable in isolation, and the package now has 100% test coverage.

See discussion #​419 for a little more background.

There's some other neat bits in there too, such as the "trace" extension, which gives a hook into inspecting the internal events that occur during the request/response cycle. This extension is needed for the HTTPX cli, in order to...

  • Log the point at which the connection is established, and the IP/port on which it is made.
  • Determine if the outgoing request should log as HTTP/1.1 or HTTP/2, rather than having to assume it's HTTP/2 if the --http2 flag was passed. (Which may not actually be true.)
  • Log SSL version info / certificate info.

Note that curio support is not currently available in 0.14.0. If you're using httpcore with curio please get in touch, so we can assess if we ought to prioritize it as a feature or not.


Configuration

📅 Schedule: Branch creation - "before 4am" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from billsioros as a code owner October 31, 2023 01:26
@renovate renovate bot added the 🎲 dependencies Working on dependencies label Oct 31, 2023
@renovate renovate bot force-pushed the renovate/httpcore-1.x branch from 48a2bc9 to 89c36ab Compare November 3, 2023 13:35
@renovate renovate bot force-pushed the renovate/httpcore-1.x branch from 89c36ab to d115240 Compare November 10, 2023 17:11
@stale
Copy link

stale bot commented Nov 20, 2023

This issue has been marked stale, as it had no activity in the last 7 days. If the issue remains stale for an additional 7 days (a total of two weeks with no activity), it will be automatically closed.

@stale stale bot added the 💀 stale This had no recent activity label Nov 20, 2023
@stale
Copy link

stale bot commented Nov 28, 2023

Closing the issue due to inactivity.

@stale stale bot closed this Nov 28, 2023
@renovate
Copy link
Author

renovate bot commented Nov 28, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 1.x releases. But if you manually upgrade to 1.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/httpcore-1.x branch November 28, 2023 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎲 dependencies Working on dependencies 💀 stale This had no recent activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant