Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SegmentNew() returning null #60

Open
mightypanda opened this issue Jul 7, 2024 · 0 comments
Open

SegmentNew() returning null #60

mightypanda opened this issue Jul 7, 2024 · 0 comments

Comments

@mightypanda
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant