smux icon indicating copy to clipboard operation
smux copied to clipboard

proposal: add option to not close idle session

Open apmattil opened this issue 4 years ago • 1 comments

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.

apmattil avatar May 07 '21 13:05 apmattil

Config.KeepAliveDisabled just do the job

xtaci avatar May 07 '21 14:05 xtaci