Skip to content

ts_tunnel: don't respond to keepalives with more keepalives #367

Description

@danderson

Currently, the receive path schedules the transmission of a keepalive for any packet that successfully decrypts, including keepalives sent by the peer. This means that keepalives will keep ping-ponging for the entire duration of the session, until the check for expired sessions in send_keepalive declines to rotate the session if there's no other traffic.

Instead, only schedule a keepalive transmission if a non-keepalive packet was received.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions