kcp2k
kcp2k copied to clipboard
SegmentNew() returning null
Hi. I rarely receive a null from the SegmentNew() function in Kcp.cs which turns into a disconnection. The pool seems to have elements, can a null object be part of the segment collection?
Segment seg = SegmentNew(); seg.conv = conv; seg.cmd = CMD_ACK; seg.wnd = WndUnused(); seg.una = rcv_nxt;
Is there a way to recover from it without disconnecting?