swallowed errors, or escalating too quickly #3269
Labels
bug
difficulty:easy
help wanted
priority:important
The changes needed are critical for libp2p, or are blocking another project
rust-libp2p/swarm/src/handler/one_shot.rs
Lines 214 to 219 in 13a59a3
@mxinden This is where incoming stream upgrade errors are lost, as mentioned in today’s meeting. #3128 somewhat intentionally did not fix this since the error is returned from
Apply
. Since there is no obvious need for more reaction, I’d propose to log inbound upgrade errors on debug level in the above spot.In the above code snippet, outbound upgrade errors lead to closing the connection. I’m not sure whether that is the best possible response given that many protocols may be composed and thus the escalation’s scope seems too large.
The text was updated successfully, but these errors were encountered: