fix(http): drain SSE stream for connection reuse (#790)
* fix(http): reduce latency on subsequent StreamableHttp calls * refactor: rely on stream drain for connection reuse * refactor: clean up comments and naming * fix: restore pool_max_idle_per_host(0) for Linux
This commit is contained in:
parent
ad3997268d
commit
c99903a67a
1 changed files with 210 additions and 69 deletions
|
|
@ -339,3 +339,16 @@ required-features = [
|
|||
]
|
||||
path = "tests/test_streamable_http_stale_session.rs"
|
||||
|
||||
[[test]]
|
||||
name = "test_streamable_http_connection_reuse"
|
||||
required-features = [
|
||||
"server",
|
||||
"client",
|
||||
"macros",
|
||||
"schemars",
|
||||
"transport-streamable-http-server",
|
||||
"transport-streamable-http-client",
|
||||
"transport-streamable-http-client-reqwest",
|
||||
]
|
||||
path = "tests/test_streamable_http_connection_reuse.rs"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue