mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-07 00:13:33 +00:00
drop proxied socket when send/recv error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user