You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo build
target/debug/actix-test # assume project name is actix-test
ps aux | grep actix-test # get pid
watch 'lsof -i -a -p <pid>'
You will see unclosed connection is growing every 2s.
I found this only happens when server is http/2, and did some basic debugging. My finding: in actix-http/src/client/pool.rs, it only closes connection when connection type is http1, and http2 case was not handled.
The text was updated successfully, but these errors were encountered:
Seems like h2 connections are not explicitly handled here. Maybe the intention was to implicitly drop the connection like it was suggested in the upstream issue but fails somehow.
ConnectionType::H2 should carry a waker to wake up the h2 Connection future and end it properly when dropping. This can be done with a typed future stores a shared waker or a select on oneshot channel.
Below would be the future need to be resolved on ConnectionType drop
It happens in our staging server. A minimum example to reproduce:
Dependency:
main.rs:
You will see unclosed connection is growing every 2s.
I found this only happens when server is http/2, and did some basic debugging. My finding: in actix-http/src/client/pool.rs, it only closes connection when connection type is http1, and http2 case was not handled.
The text was updated successfully, but these errors were encountered: