TCP connection closes shortly after successful connect #18
Replies: 3 comments
-
|
Likely the QUIC session never becomes ready, so the client accepts local TCP connections but then closes once picoquic gives up. The Connection closed line is emitted on the QUIC close/app-close/stateless-reset callback, not on TCP (crates/slipstream-client/src/streams.rs). If the user never sees Connection ready, the handshake didn’t complete, which usually means the DNS path isn’t delivering valid slipstream TXT responses. Possible causes:
Quick checks to confirm:
If you can share whether Connection ready appears or what the debug poll logs show, I can narrow it down further. |
Beta Was this translation helpful? Give feedback.
-
|
Server Command:
Server Log: Client Command:
Client Log: Note: |
Beta Was this translation helpful? Give feedback.
-
|
The behavior matches a flaky recursive path rather than a local client bug. In recursive mode, the resolver still has to reach your authoritative slipstream server; if that leg is intermittently blocked or rate‑limited (common under firewall/anycast changes), the tunnel will sometimes work and then drop under load. Separately, your server logs show the target at 127.0.0.1:1080 closing immediately (target eof read_bytes=12), which suggests a protocol mismatch (looks like a SOCKS reply). That will close individual streams even if the tunnel itself is healthy. What you can do if recursive is mandatory:
We’ve also updated the client/server to treat EHOSTUNREACH/ENETUNREACH as transient so they don’t exit on ICMP unreachable (f3fa1f8), but if DNS responses stop entirely the tunnel will still stall. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m running
slipstream-clientand it accepts incoming TCP streams, but the connection gets closed soon after the connection is established. I’m trying to keep the TCP connection alive (or understand why it’s closing) and avoid the disconnect.Command
Output / Logs
Beta Was this translation helpful? Give feedback.
All reactions