Skip to content

SetMtu will reset kcp.buffer, but kcp.snd_buf has last mss segment #331

@brevin-yoke

Description

@brevin-yoke

Setting the MTU will change the buffer size, but there might still be segments of the previous MSS size in the kcp.snd_buf. When calling flush for transmission, will causes a panic.
ptr = segment.encode(ptr) copy(ptr, segment.data) ptr = ptr[len(segment.data):]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions