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

🔖 Release 2.3.901 #47

Merged
merged 1 commit into from
Nov 26, 2023
Merged

🔖 Release 2.3.901 #47

merged 1 commit into from
Nov 26, 2023

Conversation

Ousret
Copy link
Member

@Ousret Ousret commented Nov 26, 2023

2.3.901 (2023-11-26)

  • Small performance improvement while in HTTP/1.1
  • Any string passed down to the body will enforce a default Content-Type: text/plain; charset=utf-8 for safety, unless
    you specified a Content-Type header yourself. The charset parameter will always be set to utf-8.
    It is recommended that you pass bytes instead of a plain string. If a conflicting charset has been set that
    does not refer to utf-8, a warning will be raised.
  • Added callable argument in urlopen, and request named on_upload_body that enables you to track
    body upload progress for a single request. It takes 4 positional arguments, namely:
    (total_sent: int, total_to_be_sent: int | None, is_completed: bool, any_error: bool)
    total_to_be_sent may be set to None if we're unable to know in advance the total size (blind iterator/generator).
  • Fixed a rare case where ProtocolError was raised instead of expected IncompleteRead exception.
  • Improved HTTP/3 overall performance.
  • Changed the default max connection per host for (http, https) pools managed by PoolManager.
    If the PoolManager is instantiated with num_pools=10, each (managed) subsequent pool will have maxsize=10.
  • Improved performance in a multithreading context while using many multiplexed connections.
  • Changed the default max saturated multiplexed connections to 64 as the minimum.
    Now a warning will be fired if you reach the maximum capacity of stored saturated multiplexed connections.

- Small performance improvement while in HTTP/1.1
- Any string passed down to the body will enforce a default ``Content-Type: text/plain; charset=utf-8`` for safety, unless
  you specified a ``Content-Type`` header yourself. The ``charset`` parameter will always be set to ``utf-8``.
  It is recommended that you pass ``bytes`` instead of a plain string. If a conflicting charset has been set that
  does not refer to utf-8, a warning will be raised.
- Added callable argument in ``urlopen``, and ``request`` named ``on_upload_body`` that enable you to track
  body upload progress for a single request. It takes 4 positional arguments, namely:
  (total_sent: int, total_to_be_sent: int | None, is_completed: bool, any_error: bool)
  total_to_be_sent may be set to None if we're unable to know in advance the total size (blind iterator/generator).
- Fixed a rare case where ``ProtocolError`` was raised instead of expected ``IncompleteRead`` exception.
- Improved HTTP/3 overall performance.
- Changed the default max connection per host for (http, https) pools managed by ``PoolManager``.
  If the ``PoolManager`` is instantiated with ``num_pools=10``, each (managed) subsequent pool will have ``maxsize=10``.
- Improved performance while in a multithreading context while using many multiplexed connections.
- Changed the default max saturated multiplexed connections to 64 as the minimum.
  Now a warning will be fired if you reach the maximum capacity of stored saturated multiplexed connections.
@Ousret Ousret enabled auto-merge (squash) November 26, 2023 08:41
@Ousret Ousret disabled auto-merge November 26, 2023 08:41
@Ousret Ousret merged commit 2cbc25b into main Nov 26, 2023
38 checks passed
@Ousret Ousret deleted the release-2.3.901 branch November 26, 2023 08:41
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