zhboner / realm

A network relay tool
MIT License
1.48k stars 279 forks source link

set default tcp keepalive #116

Closed MeteorsLiu closed 9 months ago

MeteorsLiu commented 9 months ago

See issue (#115 ) Cargo will generate cargo.lock, it cannot be merged, so remove.

MeteorsLiu commented 9 months ago

Test(netstat -tnope, linux, 30s keepalive): image

zephyrchien commented 9 months ago

That's cool! I'm now working on updating some dependencies, will merge this PR later.

BTW, should we set a smaller retry count(default is 9, thus 15+9*15s) as well ? Personally I think 5 or 3 may be more suitable..