tokio_kcp
tokio_kcp copied to clipboard
Is it possible to provide an API that actively switches the underlying udp connection?
The underlying transport protocol of kcp implemented by this crate is udp
I found a phenomenon during actual use: for the same udp connection (UDP data channel determined by source IP and source port and destination IP and destination port), the speed is normal for a period of time after the connection is established,
but As the connection duration increases, the transfer speed will drop so drastically that it is almost unusable (and not blocked)
Since the connection isn't blocked and the program doesn't try to create a new connection, this puts me in a bind - can only use a very low connection speed until I restart the app, then wait for the connection speed to fail again and start a new lap
So I would like to ask, is there a way for the client to actively (after disconnection) reconnect the API?
If not, is there any other way to solve the problem I am currently facing?