-
Notifications
You must be signed in to change notification settings - Fork 505
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
Impossible to time out server connections #2352
Comments
adleong
added this to Short-Term
in Linkerd 1.x Backlog. See https://github.com/linkerd/linkerd2/blob/main/ROADMAP.md
Nov 5, 2019
adleong
pushed a commit
that referenced
this issue
Dec 6, 2019
…er conne… (#2353) This PR fixes #2352. There might be clients opening connections to Linkerd not closing them properly. Also sometimes network components might silently drop connections to Linkerd. This results in connections that are never closed and after a longer time this might accumulate to so many open connections until the Linkerd process runs out of file handles. Right now I could not find a configuration parameter to control expiring of inbound connections like it is supported for client connections. Therefore this PR proposes to add a configuration parameter `serverSession` to a server that behaves similar to the `clientSession`. With the following configuration server connections will be closed after 2 seconds of idling or after a full life time of 30 seconds: ```yaml servers: - port: 4140 serverSession: idleTimeMs: 2000 lifeTimeMs: 30000 ``` Signed-off-by: Robert Panzer <[email protected]>
adleong
removed this from Short-Term
in Linkerd 1.x Backlog. See https://github.com/linkerd/linkerd2/blob/main/ROADMAP.md
Dec 17, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Type:
What happened:
Clients do not correctly close connections, or network components silently drop connections without closing or resetting them.
After several days this can result in Linkerd running out of file handles.
What you expected to happen:
It should be possible to expire server connections.
How to reproduce it (as minimally and precisely as possible):
Start Linkerd with a very low limit of file handles.
Then open as many connections as possible to Linkerd, can be a plain socket, until Linkerd fails to accept the connections due to lack of file handles.
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: