-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behavior #18
Comments
your output tells that client tries to retransmit hello message, but the listener never had a chance to send data, because it's closed immediately after Read(). KCP doesn't define session control messages like SYN/FIN/RST in TCP, a real world example is to use some multiplexing protocol over session, such as yamux. |
I am more worried that the dial part keeps trying to send data even after Close(). I fully understand that there is no session control, but TIME_WAIT could be implemented based on the convID on the listen side, essentially ignoring all packets for some time. Regarding the timeout, not sure why you've pointed at this issue as it's somewhat a different question. Are you saying application level timeouts is the right and only way to solve it? Or are you saying yamux solves it? |
application level timeouts is the right and only way to solve it. |
I see yamux has some tcp like control messages which might help solve this, I'll see where that takes me. |
I'd expect the output to be:
Actual output:
I guess it always assumes a new conversation, given .Close() is called on the accept side?
The text was updated successfully, but these errors were encountered: