jpillora / chisel

A fast TCP/UDP tunnel over HTTP
MIT License
13.67k stars 1.41k forks source link

Keepalive timers for disconnected chisel client #445

Open storm66-ag opened 1 year ago

storm66-ag commented 1 year ago

Hello guys! Looks like you are doing a great things! Thank you for that! One question pls:

I used chisel server / client with option "R" for forwarding traffic from server side to client. But found the things like if to disconnect the client (for example unplug the cable ) from internet - the server side will still listening the port that client used before disconnect ( in forwarding option mode) . And of course once client will connect again in two-three minutes - it can't to do that as port is busy.

The server will disable this port after around 10 minutes. This is so long.... Is there some ways to fix that? may be add the keepalive timer on server side or something like that...

server v1.9.1 client v1.9.1

thank you for you job....

ximiximi1 commented 1 year ago

Yes, this is a known issue about keepalive. I have submitted a PR about this and still waiting for merge. #442 You can build from my repo by yourself if you are urgent. https://github.com/ximiximi1/chisel/tree/sshkeepalive-patch

storm66-ag commented 1 year ago

Thank you very much !!! Tested! Works!