Skip to content

SegmentNew() returning null #60

@mightypanda

Description

@mightypanda

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions