urllib3 v1.26.9 Release Notes

Release Date: 2022-03-16 // 4 months ago
    • ๐Ÿ”„ Changed urllib3[brotli] extra to favor installing Brotli libraries that are still receiving updates like brotli and brotlicffi instead of brotlipy. This change does not impact behavior of urllib3, only which dependencies are installed.
    • ๐Ÿ›  Fixed a socket leaking when HTTPSConnection.connect() raises an exception.
    • ๐Ÿ›  Fixed server_hostname being forwarded from PoolManager to HTTPConnectionPool when requesting an HTTP URL. Should only be forwarded when requesting an HTTPS URL.

Previous changes from v1.26.8

    • โž• Added extra message to urllib3.exceptions.ProxyError when urllib3 detects that a proxy is configured to use HTTPS but the proxy itself appears to only use HTTP.
    • โž• Added a mention of the size of the connection pool when discarding a connection due to the pool being full.
    • โž• Added explicit support for Python 3.11.
    • 0๏ธโƒฃ Deprecated the Retry.MAX_BACKOFF class property in favor of Retry.DEFAULT_MAX_BACKOFF to better match the rest of the default parameter names. Retry.MAX_BACKOFF is removed in v2.0.
    • ๐Ÿ“ฆ Changed location of the vendored ssl.match_hostname function from urllib3.packages.ssl_match_hostname to urllib3.util.ssl_match_hostname to ensure Python 3.10+ compatibility after being repackaged by downstream distributors.
    • ๐Ÿ›  Fixed absolute imports, all imports are now relative.