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.
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.