Commit 70e959d
committed
fix(http): disable idle connection pooling for default client
POST SSE response bodies cannot be fully consumed before the next
request starts, causing reqwest to stall on pool checkout (~40ms).
The long-lived GET SSE stream already holds its own connection, so
there is no benefit to pooling POST connections with HTTP/1.1.
This matches the workaround reported in #789.1 parent c9ecfe0 commit 70e959d
1 file changed
Lines changed: 16 additions & 2 deletions
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
281 | 295 | | |
282 | 296 | | |
283 | 297 | | |
| |||
0 commit comments