kcptun icon indicating copy to clipboard operation
kcptun copied to clipboard

Reuse same connection?

Open baobo5625 opened this issue 4 years ago • 1 comments

I'm seeing more than 10k connection setup and experiencing "accept4: too many open files ", besides tuning up the system (i've tried to increase the file max and ulimited to 204800, but still no luck), I'm wondering if it could group up multiple connections to the same destination and re-use those connections?

baobo5625 avatar Nov 03 '20 03:11 baobo5625

if it's client, you can try lower -scavengettl. re-using connection is barely possible because of router NAT mapping. UDP is stateless, so the only way to check if a connection has terminated, IS TIME.

xtaci avatar Nov 03 '20 15:11 xtaci