Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❇️ Discrete idle connection watcher scheduler #162

Merged
merged 19 commits into from
Oct 21, 2024
Merged

Conversation

Ousret
Copy link
Member

@Ousret Ousret commented Oct 18, 2024

2.11.900 (2024-10-21)

  • Added a discrete task for each instantiated ConnectionPool to watch for unsolicited incoming data.
    This improves the fix shipped in v2.10.906 and avoid having to recycle your multiplexed connection in idle moments.
    A new keyword argument is supported in your PoolManager configuration, namely background_watch_delay.
    This parameter takes a int or float as the delay between checks. Set it to None to void this background task.
    Anything lower than 0.01 will be interpreted as None, therefor disabling the discrete watch.
  • Added managed keepalive for HTTP/2 and HTTP/3 over QUIC. A new keyword argument, named keepalive_delay that
    takes a value expressed in seconds for how long urllib3-future should automatically keep the connection alive.
    This is done in direct extension to our "discrete task" mentioned just before. We will send PING frame
    automatically to the remote peer every 60s by default (after idle for 60s to be clear). The window delay for
    sending a PING is configurable via the keepalive_idle_window parameter. Learn more about this in our
    documentation.

This improves the fix shipped in v2.10.906 and avoid having to recycle your multiplexed connection in idle moments.
  A new keyword argument is supported in your PoolManager configuration, namely ``background_watch_delay``.
  This parameter takes a int or float as the delay between checks. Set it to None to void this background task.
@Ousret Ousret marked this pull request as draft October 18, 2024 08:38
@Ousret Ousret marked this pull request as ready for review October 20, 2024 09:17
@Ousret Ousret merged commit 1446db4 into main Oct 21, 2024
12 checks passed
@Ousret Ousret deleted the feat-eagle-watch branch October 21, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant