You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is even important to you, but I have noticed that gnirehtet leaking connection and memory when trying to do TCP connections when UDP is required. I had to write internet connectivity checker, so I was trying to ping Google public DNS. Later turned out that I was trying to establish TCP connections instead of UDP.
In order to repro this run this in a loop:
When the TCP connection received a FIN, it stayed in CLOSE WAIT state
without actually moving to LASK-ACK (cf diagram in RFC793:
<https://tools.ietf.org/html/rfc793#section-3.2>).
Since TCP connection _is_ the TCP peer (from the Android client point of
view), there is no need to wait for the network socket to be actually
closed, so just flag "remote closed" immediately, and bypass the
TCP CLOSE WAIT state.
Fixes <#57>.
I have noticed that gnirehtet leaking connection and memory when trying to do TCP connections when UDP is required
In fact, it affects all TCP sockets : a close() from the Android-side left the TCP connection state in a "waiting state" indefinitely, which is quite a huge bug. Google DNS also listens on TCP, that's why you get the problem with it.
I just fixed it on dev branch. Could you test, please?
Hello, I've quickly tested java relay server today and haven't seen any connection to stack up. I was unable to test rust implementation because I couldn't build it.
Not sure if this is even important to you, but I have noticed that gnirehtet leaking connection and memory when trying to do TCP connections when UDP is required. I had to write internet connectivity checker, so I was trying to ping Google public DNS. Later turned out that I was trying to establish TCP connections instead of UDP.
In order to repro this run this in a loop:
Overtime time this will cause connections and memory to leak. This repros on both java and rust relay server implementations.
The text was updated successfully, but these errors were encountered: