xtaci / kcp-go

A Crypto-Secure Reliable-UDP Library for golang with FEC
MIT License
4.12k stars 737 forks source link

Fixed possible coroutine leaks caused by closing the connection with SetDeadline #251

Open blinkbean opened 1 year ago

blinkbean commented 1 year ago

Resolves #250 See detailed description in the fore-mentioned issue.

xtaci commented 1 year ago

need description on this issue

faddat commented 10 months ago

@xtaci I think that the issue is that we'd always return nil previously.

I'm trying to learn the codebase, and what I think that these changes do is explicitly send back a connection close.

I think that the author could be correct.