Fix websocket log handling

This commit is contained in:
世界
2025-09-23 15:16:55 +08:00
parent 714a68bba1
commit 140735dbde

View File

@@ -291,7 +291,7 @@ func wrapWsError(err error) error {
}
var closedErr wsutil.ClosedError
if errors.As(err, &closedErr) {
if closedErr.Code == ws.StatusNormalClosure {
if closedErr.Code == ws.StatusNormalClosure || closedErr.Code == ws.StatusNoStatusRcvd {
err = io.EOF
}
}