Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better control over keep-alives #4382

Open
marten-seemann opened this issue Mar 22, 2024 · 0 comments
Open

better control over keep-alives #4382

marten-seemann opened this issue Mar 22, 2024 · 0 comments

Comments

@marten-seemann
Copy link
Member

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?

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

No branches or pull requests

1 participant