fix(tcp): cancel pending connects on disconnect and propagate remote close
This commit is contained in:
1 parent
7a2bb20bf7
commit
929c1c3d28
2 files changed
+5
-3
No files matched your search
@@ -175,6 +175,11 @@ class TcpTransportService {
|
||||
}
|
||||
|
||||
void _handleSocketDone() {
|
||||
if (_status == TcpTransportStatus.disconnecting ||
|
||||
_status == TcpTransportStatus.disconnected) {
|
||||
return;
|
||||
}
|
||||
_addFrameError(StateError('TCP socket closed by remote endpoint'));
|
||||
unawaited(disconnect());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user