Skip to content

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

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):]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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