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

Lot of CLOSE_WAIT tcp connections #261

Closed
computer045 opened this issue Oct 5, 2020 · 1 comment
Closed

Lot of CLOSE_WAIT tcp connections #261

computer045 opened this issue Oct 5, 2020 · 1 comment

Comments

@computer045
Copy link

OS: Ubuntu Server 18.04.4
pcs version: 0.9.164

pcsd keeps using tcp ports and it increases by about 1 every minute. After a while the servers are polluted with those lines and it can cause some issues with inbound ssh and tcp connections. Also, I believe this is the issue that caused my pacemaker cluster to become unstable. Can you reproduce this issue?

user@ubuntu:~$ sudo ss -t | grep CLOSE-WAIT
State                 Recv-Q             Send-Q         Local Address:Port        Peer Address:Port
CLOSE-WAIT            25                 0              192.168.1.15:57338        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:37974        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:57298        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:57310        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:56890        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:57430        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:56788        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38654        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:56700        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38012        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:57384        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38562        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38534        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:56750        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38136        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38522        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38472        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38114        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:56766        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38326        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38188        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:57248        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:56912        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:57192        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:37990        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:56842        192.168.1.16:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38066        192.168.1.15:2224 
CLOSE-WAIT            25                 0              192.168.1.15:38608        192.168.1.15:2224

Doing a sudo systemctl restart pcsd clears all those connections.

@ondrejmular
Copy link
Collaborator

Thank you for the bug report.
Those connections should be eventually cleaned up by garbage collector, but it seems that's not the case so we need to do it explicitly. This commit should fix this issue: 14d0f7b

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