drop proxied socket when send/recv error

This commit is contained in:
zonyitoo
2022-01-21 20:22:45 +08:00
parent bd7c5b3a11
commit cc0cc7ca8a
2 changed files with 6 additions and 0 deletions
@@ -457,6 +457,9 @@ where
data.len(),
err
);
// Drop the socket and reconnect to another server.
self.proxied_socket = None;
}
}
@@ -343,6 +343,9 @@ impl UdpAssociationContext {
data.len(),
err
);
// Drop the socket and reconnect to another server.
self.proxied_socket = None;
}
}