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
I am having some issue with tunneling TCP using h2, it aborts the connection after the server (usually speedtest servers) resets the connection and h2 trying to send_open().
Not sure if this should be tolerated by h2 or to be handled by my code. I tried to do an early return with a Closed state and it seems to fix my problem.
pubfn send_open(&mutself,eos:bool) -> Result<(),UserError>{let local = Streaming;ifmatches!(self.inner,Inner::Closed(_)){returnOk(());}
I didn't call it directly, it just resulted in aborting the h2 connection in my case.
The server receives a request and gets the remote address to connect.
It connects the remote and do a bidirectional copy.
In this case the speedtest servers close the connection immediately, results in an already closed stream (I suppose) even before h2 internally calls send_open().
I am having some issue with tunneling TCP using h2, it aborts the connection after the server (usually speedtest servers) resets the connection and h2 trying to
send_open()
.Not sure if this should be tolerated by h2 or to be handled by my code. I tried to do an early return with a
Closed
state and it seems to fix my problem.h2/src/proto/streams/state.rs
Lines 91 to 129 in 77be664
Any suggestions on a proper workaround?
The text was updated successfully, but these errors were encountered: