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

TCP Dynamic Proxy is not releasing ports from deregistered services #796

Closed
fwkz opened this issue Oct 27, 2020 · 1 comment · Fixed by #798
Closed

TCP Dynamic Proxy is not releasing ports from deregistered services #796

fwkz opened this issue Oct 27, 2020 · 1 comment · Fixed by #798

Comments

@fwkz
Copy link
Contributor

fwkz commented Oct 27, 2020

Abstract

fabio leaves dangling ports from deregistered services that used TCP Dynamic Proxy

Steps to reproduce

  1. Start fabio:1.5.14-go1.15 docker container with FABIO_PROXY_ADDR=":9999,0.0.0.0:0;proto=tcp-dynamic;refresh=5s" and host networking.
  2. Register 2 consul services that will use TCP Dynamic Proxy
netstat -tulpn | grep fabio                                                                                                                                                          nomad-1: Tue Oct 27 16:37:20 2020

tcp6	   0	  0 :::31130                :::*                    LISTEN	29060/fabio
tcp6	   0	  0 :::24604                :::*                    LISTEN	29060/fabio
tcp6	   0	  0 :::9998                 :::*                    LISTEN	29060/fabio
tcp6	   0	  0 :::9999                 :::*                    LISTEN	29060/fabio
  1. Deregister one of the consul services. Port 31130 is dangling, despite the fact that the underlying service is deregistered and no longer visible on Fabio UI (http://foobar.fabio.ui:9998/routes)
netstat -tulpn | grep fabio                                                                                                                                                          nomad-1: Tue Oct 27 16:37:20 2020

tcp6	   0	  0 :::31130                :::*                    LISTEN	29060/fabio
tcp6	   0	  0 :::24604                :::*                    LISTEN	29060/fabio
tcp6	   0	  0 :::9998                 :::*                    LISTEN	29060/fabio
tcp6	   0	  0 :::9999                 :::*                    LISTEN	29060/fabio
  1. Restart fabio container to see if it will release ports and start properly.
netstat -tulpn | grep fabio                                                                                                                                                          nomad-1: Tue Oct 27 16:37:20 2020

tcp6	   0	  0 :::24604                :::*                    LISTEN	29060/fabio
tcp6	   0	  0 :::9998                 :::*                    LISTEN	29060/fabio
tcp6	   0	  0 :::9999                 :::*                    LISTEN	29060/fabio
@evandam
Copy link

evandam commented Oct 29, 2020

I'm seeing the same issue using tcp-dynamic as well. Any way this can be fixed soon?

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

Successfully merging a pull request may close this issue.

2 participants