jpillora / chisel

A fast TCP/UDP tunnel over HTTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keepalive timers for disconnected chisel client

storm66-ag opened this issue · comments

commented

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....

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

commented

Thank you very much !!! Tested! Works!