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

proposal: add option to not close idle session #84

Open
apmattil opened this issue May 7, 2021 · 1 comment
Open

proposal: add option to not close idle session #84

apmattil opened this issue May 7, 2021 · 1 comment

Comments

@apmattil
Copy link

apmattil commented May 7, 2021

I'm making proxy and have tcp connections that are just opened but no data is sent.
If I enable keepalive, session is closed after 30 sec.

Could you add option not to close session if it has streams open ? not just data passed.
I do like to detect if connection is broken when keepalive's do not get reply.

I know this could be done at my proxy as well but implementing it to smux would make things much simpler.

@xtaci
Copy link
Owner

xtaci commented May 7, 2021

Config.KeepAliveDisabled just do the job

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

No branches or pull requests

2 participants