hypha-rpc 0.20.88__py3-none-any.whl → 0.20.89__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hypha_rpc/VERSION +1 -1
- hypha_rpc/http_client.py +11 -1
- {hypha_rpc-0.20.88.dist-info → hypha_rpc-0.20.89.dist-info}/METADATA +1 -1
- {hypha_rpc-0.20.88.dist-info → hypha_rpc-0.20.89.dist-info}/RECORD +6 -6
- {hypha_rpc-0.20.88.dist-info → hypha_rpc-0.20.89.dist-info}/WHEEL +0 -0
- {hypha_rpc-0.20.88.dist-info → hypha_rpc-0.20.89.dist-info}/top_level.txt +0 -0
hypha_rpc/VERSION
CHANGED
hypha_rpc/http_client.py
CHANGED
|
@@ -127,7 +127,11 @@ class HTTPStreamingRPCConnection:
|
|
|
127
127
|
return headers
|
|
128
128
|
|
|
129
129
|
async def _create_http_client(self) -> httpx.AsyncClient:
|
|
130
|
-
"""Create configured HTTP client.
|
|
130
|
+
"""Create configured HTTP client with connection pooling.
|
|
131
|
+
|
|
132
|
+
Connection pooling improves performance by reusing TCP connections
|
|
133
|
+
for multiple requests, reducing connection overhead.
|
|
134
|
+
"""
|
|
131
135
|
verify = True
|
|
132
136
|
if self._ssl is False:
|
|
133
137
|
verify = False
|
|
@@ -137,6 +141,12 @@ class HTTPStreamingRPCConnection:
|
|
|
137
141
|
return httpx.AsyncClient(
|
|
138
142
|
timeout=httpx.Timeout(self._timeout, connect=30.0),
|
|
139
143
|
verify=verify,
|
|
144
|
+
# Connection pooling for better performance with many requests
|
|
145
|
+
limits=httpx.Limits(
|
|
146
|
+
max_connections=100, # Max total connections
|
|
147
|
+
max_keepalive_connections=20, # Keep-alive connections for reuse
|
|
148
|
+
keepalive_expiry=30.0, # Keep connections alive for 30 seconds
|
|
149
|
+
),
|
|
140
150
|
)
|
|
141
151
|
|
|
142
152
|
async def open(self):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
hypha_rpc/VERSION,sha256=
|
|
1
|
+
hypha_rpc/VERSION,sha256=vpnrMBAiB3l6wEQDy9_zHUIqw7t3BxjiItBOfzE1WXU,26
|
|
2
2
|
hypha_rpc/__init__.py,sha256=Nm01vho0uIMXET8-lqxaWTRgoKQD-0SEhpmS9odRed0,4721
|
|
3
3
|
hypha_rpc/client.py,sha256=9c3Qd1bboNiEc_5P4jRLi233VFHyyME8alZYZ5ZZq6s,4551
|
|
4
|
-
hypha_rpc/http_client.py,sha256=
|
|
4
|
+
hypha_rpc/http_client.py,sha256=xdMhU64kte2T7uPVtwzRRWKOnYB_wRTCVg0qKzLllh8,20285
|
|
5
5
|
hypha_rpc/pyodide_sse.py,sha256=o1-6Bqb7bcplSy7pwkmtQb6vKeJsyxex_RebqNd3wX8,2960
|
|
6
6
|
hypha_rpc/pyodide_websocket.py,sha256=XjrgKYySUSNYma-rXjHrSv08YCxj5t4hYEQnK15D6cE,18749
|
|
7
7
|
hypha_rpc/rpc.py,sha256=lnNiPAm_BNT5JjDhAPFRlxs6HioXw77TelUtYd_blYk,115579
|
|
@@ -14,7 +14,7 @@ hypha_rpc/utils/mcp.py,sha256=AW48yjCovc0jyekRLeD_1U8mRaA8-nEqh4DotSE_s3Y,17348
|
|
|
14
14
|
hypha_rpc/utils/pydantic.py,sha256=a09_ys4BSXc4Yi6OgZjdspbtLvQVoRCChr6uInY4fN4,5144
|
|
15
15
|
hypha_rpc/utils/schema.py,sha256=WabBJiDheMKRXUroVe9JRlI5P4Wlv6kc0roxVNQZHH8,22110
|
|
16
16
|
hypha_rpc/utils/serve.py,sha256=xr_3oAQDyignQbz1fcm4kuRMBOb52-i0VSYCjZou51c,11882
|
|
17
|
-
hypha_rpc-0.20.
|
|
18
|
-
hypha_rpc-0.20.
|
|
19
|
-
hypha_rpc-0.20.
|
|
20
|
-
hypha_rpc-0.20.
|
|
17
|
+
hypha_rpc-0.20.89.dist-info/METADATA,sha256=Kybx_aqgy8mSAGioAlrqRJHmnjJwn29rcer8V5lBpV0,924
|
|
18
|
+
hypha_rpc-0.20.89.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
19
|
+
hypha_rpc-0.20.89.dist-info/top_level.txt,sha256=uShPbaPGP-Ig8OVnQcT6sEzV0Qhb6wfxSJ3uCmYaB58,10
|
|
20
|
+
hypha_rpc-0.20.89.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|