Skip to content

Commit 6663a03

Browse files
core: make wolfssl::PeerClosed error as fatal error
1 parent 5ff6805 commit 6663a03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightway-core/src/connection.rs

+1
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ impl ConnectionError {
216216
Disconnected => true,
217217
WolfSSL(wolfssl::Error::Fatal(ErrorKind::DomainNameMismatch)) => true,
218218
WolfSSL(wolfssl::Error::Fatal(ErrorKind::DuplicateMessage)) => true,
219+
WolfSSL(wolfssl::Error::Fatal(ErrorKind::PeerClosed)) => true,
219220

220221
WireError(wire::FromWireError::UnknownFrameType) => false,
221222
WireError(_) => true,

0 commit comments

Comments
 (0)