mirror of https://github.com/M66B/NetGuard.git
Native no need to shutdown a closed socket
This commit is contained in:
parent
17772a9c45
commit
33669a43c1
|
@ -543,11 +543,6 @@ void check_sockets(const struct arguments *args, fd_set *rfds, fd_set *wfds, fd_
|
|||
cur->lport, strstate(cur->state));
|
||||
|
||||
if (write_fin(cur, args->tun) >= 0) {
|
||||
// Shutdown socket for reading
|
||||
if (shutdown(cur->socket, SHUT_RD))
|
||||
log_android(ANDROID_LOG_WARN, "shutdown RD error %d: %s",
|
||||
errno, strerror(errno));
|
||||
|
||||
cur->local_seq++; // local FIN
|
||||
|
||||
if (cur->state == TCP_SYN_RECV || cur->state == TCP_ESTABLISHED)
|
||||
|
|
Loading…
Reference in New Issue