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

ZeroMQ connection stays in SYN_SENT state after listener changes IP #603

Open
gitzko opened this issue Jul 14, 2023 · 1 comment
Open

ZeroMQ connection stays in SYN_SENT state after listener changes IP #603

gitzko opened this issue Jul 14, 2023 · 1 comment

Comments

@gitzko
Copy link

gitzko commented Jul 14, 2023

I'm building a Docker Swarm system, in which one service acts as a central logger. That logger is a ZeroMQ listener for other ZMQ log clients.
I have managed to get this working with listener listening to tcp://logger_svc:20000, however if the listener service gets moved to another node, or restarts, the IP of the listener changes, and all the connections from all log clients go from ESTABLISHED to SYN_SENT state.
And there the communication ends.
I would appreciate help with getting the ZeroMQ communication back up after the listener IP address changes.

TCP    192.168.5.158:49217    192.168.5.140:20000    SYN_SENT
TCP    192.168.5.158:49218    192.168.5.140:20000    SYN_SENT
TCP    192.168.5.158:49219    192.168.5.140:20000    SYN_SENT
@gitzko
Copy link
Author

gitzko commented Jul 15, 2023

The issue in this case was with Windows Server DNS cache service, this helped:

New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name MaxCacheTtl -Value 0 -Type DWord
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name MaxNegativeCacheTtl -Value 0 -Type DWord

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

1 participant