mirror of https://github.com/M66B/NetGuard.git
Native skip reset for listen timeout
This commit is contained in:
parent
c3bcd64bac
commit
d460404d59
|
@ -115,6 +115,9 @@ 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);
|
||||
if (t->state == TCP_LISTEN)
|
||||
t->state = TCP_CLOSING;
|
||||
else
|
||||
write_rst(args, t);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue