kcptun icon indicating copy to clipboard operation
kcptun copied to clipboard

Is there a way to change configuration while KCPTUN is running?

Open jusun opened this issue 6 years ago • 2 comments

As the title. I am considering writing a script testing the quality of the Internet in real time and adjust the redundant rate accordingly, i.e. If the Internet packet loss is high, change to higher redundant rate, or reduce the redundant rate. To do that I need to change configuration settings of KCPTUN while it is running without restarting KCPTUN. Is this possible? KCPTUN read configuration just once? Or is there a way making it read configuration periodically.

jusun avatar Sep 11 '19 05:09 jusun

I think kcptun doesn't support adjusting configuration "without restarting KCPTUN". BTW, it's not reasonable to support that feature, cause kcptun requires configurations of the server and client match each other. In a situation where we have more than one client, if different clients use different configurations, things mess.

maxwellzh avatar Sep 13 '19 06:09 maxwellzh

kcptun doesn't support dynamic configuration by design.

exchanging configuration dynamically , such as handshake or control frame may expose vulnerability to adversary.

xtaci avatar Sep 13 '19 09:09 xtaci