Skip to content

better control over keep-alives #4382

@marten-seemann

Description

@marten-seemann

Currently our configuration flag for keep-alives is an all-or-nothing: it's a bool, so keep-alives are either on or off.

We could instead introduce a callback instead that lets the application decide if the connection should be kept alive.

quic.Config{
     KeepAlive func() bool
}

Open question: when exactly should this callback be called?

Metadata

Metadata

Assignees

No one assigned

    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