mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-01 12:54:07 +00:00
Native skip reset for listen timeout
This commit is contained in:
parent
c3bcd64bac
commit
d460404d59
1 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,10 @@ void check_tcp_sessions(const struct arguments *args, int sessions, int maxsessi
|
|||
if (t->state != TCP_CLOSING && t->state != TCP_CLOSE && t->time + timeout < now) {
|
||||
log_android(ANDROID_LOG_WARN, "%s idle %d/%d sec ", session, now - t->time,
|
||||
timeout);
|
||||
write_rst(args, t);
|
||||
if (t->state == TCP_LISTEN)
|
||||
t->state = TCP_CLOSING;
|
||||
else
|
||||
write_rst(args, t);
|
||||
}
|
||||
|
||||
// Check closing sessions
|
||||
|
|
Loading…
Reference in a new issue