xtaci / kcp-go

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

Message sending #111

Open antonioch opened 5 years ago

antonioch commented 5 years ago

There is a problem with Write interface implementation in sess.go. It splits input buffer into chunks before passing to kcp.Send method. As result kcp.Send gets chunks with len(chunk) == mss. So it can't calculate correct segment.frg and client gets separate messages.

dbskccc commented 5 years ago

kcp-go only support stream mode, see(https://github.com/xtaci/kcp-go/issues/89)