Skip to content
Myr

Include missing keepalive_expiry configuration (#1005)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent 093cb42 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:httpx/_client.py+6 added
44 unmodified lines
45)4647logger = get_logger(__name__)4849KEEPALIVE_EXPIRY = 5.0505152class BaseClient:53 def __init__(54 self,55 *,
462 unmodified lines
518 return httpcore.SyncConnectionPool(519 ssl_context=ssl_context,520 max_keepalive=pool_limits.max_keepalive,521 max_connections=pool_limits.max_connections,522 keepalive_expiry=KEEPALIVE_EXPIRY,523 http2=http2,524 )525526 def init_proxy_transport(
15 unmodified lines
542 proxy_mode=proxy.mode,543 ssl_context=ssl_context,544 max_keepalive=pool_limits.max_keepalive,545 max_connections=pool_limits.max_connections,546 keepalive_expiry=KEEPALIVE_EXPIRY,547 http2=http2,548 )549550 def transport_for_url(self, url: URL) -> httpcore.SyncHTTPTransport:
514 unmodified lines
1065 return httpcore.AsyncConnectionPool(1066 ssl_context=ssl_context,1067 max_keepalive=pool_limits.max_keepalive,1068 max_connections=pool_limits.max_connections,1069 keepalive_expiry=KEEPALIVE_EXPIRY,1070 http2=http2,1071 )10721073 def init_proxy_transport(
15 unmodified lines
1089 proxy_mode=proxy.mode,1090 ssl_context=ssl_context,1091 max_keepalive=pool_limits.max_keepalive,1092 max_connections=pool_limits.max_connections,1093 keepalive_expiry=KEEPALIVE_EXPIRY,1094 http2=http2,1095 )10961097 def transport_for_url(self, url: URL) -> httpcore.AsyncHTTPTransport:
446 unmodified lines