handle ECONNABORTED

This commit is contained in:
trinity-1686a
2025-08-02 12:51:37 +02:00
parent afcb22bf16
commit 5469c95877
+5 -1
View File
@@ -343,7 +343,11 @@ where
while !*must_exit.borrow() {
let (stream, client_addr) = tokio::select! {
acc = listener.accept() => acc?,
acc = listener.accept() => match acc {
Ok(r) => r,
Err(e) if e.kind() == std::io::ErrorKind::ConnectionAborted => continue,
Err(e) => return Err(e.into()),
},
_ = must_exit.changed() => continue,
};