mullvad / udp-over-tcp

Proxy UDP traffic over a TCP stream
Apache License 2.0
377 stars 61 forks source link

udp2tcp cannot establish a new connection after the first request. #35

Open kristoftorok opened 1 year ago

kristoftorok commented 1 year ago

After the first UDP request, udp2tcp is still active and running in the background but not accepting any more requests.

kristoftorok commented 1 year ago

The first two are the request and the response which works. But then there is no answer.

Debug doesn't really show anything.

I'm not familiar with rust but from the code it looks like udp2tcp closes the listener after the first response.

Screenshot from 2023-02-05 00-15-15

nooproblem commented 1 year ago

I am having a similar issue, tried with both nodelay enabled and disabled, same result, does anyone have any idea what might be causing it? Debug logs below, after which udp2tcp stops listening:

[2023-08-22T19:37:32Z DEBUG udp_over_tcp::tcp_options] SO_RCVBUF: 131072 [2023-08-22T19:37:32Z DEBUG udp_over_tcp::tcp_options] SO_SNDBUF: 16384 [2023-08-22T19:37:32Z DEBUG udp_over_tcp::tcp_options] SO_MARK: 0 [2023-08-22T19:37:32Z INFO udp_over_tcp::udp2tcp] Listening on 0.0.0.0:53/UDP [2023-08-22T19:37:37Z INFO udp_over_tcp::udp2tcp] Incoming connection from 127.0.0.1:49433/UDP [2023-08-22T19:37:37Z INFO udp_over_tcp::udp2tcp] Connecting to 100.93.47.50:6000/TCP [2023-08-22T19:37:37Z INFO udp_over_tcp::udp2tcp] Connected to 100.93.47.50:6000/TCP [2023-08-22T19:37:37Z DEBUG udp_over_tcp::tcp_options] TCP_NODELAY: false