Native skip reset for listen timeout

This commit is contained in:
M66B 2016-02-11 22:02:22 +01:00
parent c3bcd64bac
commit d460404d59
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}