kcp2k icon indicating copy to clipboard operation
kcp2k copied to clipboard

SegmentNew() returning null

Open mightypanda opened this issue 7 months ago • 0 comments

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?

mightypanda avatar Jul 07 '24 14:07 mightypanda