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

too many open connections on socket after 3 hours of running the client #136

Open
tylkomat opened this issue Aug 28, 2021 · 0 comments
Open

Comments

@tylkomat
Copy link

tylkomat commented Aug 28, 2021

After 3 hours of running the client I get the following errors in the log (replaced IPs and Ports with placeholders)

proxy TCP level 1 msg TCP keepalive for tunneled connection failed target LOCAL_IP_PORT ctrlMsg &{proxy REMOTE_IP_PORT tcp TUNNEL_IP_PORT} err file tcp 127.0.0.1:33662->LOCAL_IP_PORT: fcntl: too many open files
proxy TCP level 0 msg dial failed target LOCAL_IP_PORT ctrlMsg &{proxy REMOTE_IP_PORT tcp TUNNEL_IP_PORT} err dial tcp LOCAL_IP_PORT: socket: too many open files
proxy TCP level 0 msg dial failed target LOCAL_IP_PORT ctrlMsg &{proxy REMOTE_IP_PORT tcp TUNNEL_IP_PORT} err dial tcp LOCAL_IP_PORT: socket: too many open files
TCP level 0 msg dial failed target LOCAL_IP_PORT ctrlMsg &{proxy REMOTE_IP_PORT tcp TUNNEL_IP_PORT} err dial tcp LOCAL_IP_PORT: socket: too many open files
TCP level 0 msg dial failed target LOCAL_IP_PORT ctrlMsg &{proxy REMOTE_IP_PORT tcp TUNNEL_IP_PORT} err dial tcp LOCAL_IP_PORT: socket: too many open files
proxy TCP level 0 msg dial failed target LOCAL_IP_PORT ctrlMsg &{proxy REMOTE_IP_PORT tcp TUNNEL_IP_PORT} err dial tcp LOCAL_IP_PORT: socket: too many open files
http: proxy error: dial tcp LOCAL2_IP_PORT: socket: too many open files

I configured two tunnels which are called quite often, the http tunnelevery 5 minutes and the tcp every couple of seconds. This is my config:

server_addr: TUNNEL_IP_PORT
tls_crt: TLS_CRT
tls_key: TLS_KEY
root_ca: ROOT_CRT
tunnels:
  tunnel1:
    proto: tcp
    addr: LOCAL_IP_PORT
    remote_addr: REMOTE_IP_PORT

  tunnel2:
    proto: http
    addr: LOCAL2_IP_PORT
    host: HOST_ADDR

backoff:
  interval: 10s
  multiplier: 1.5
  max_interval: 30m
  max_time: 0

Any idea what could be causing this?

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