Skip to content

Commit

Permalink
Update quic bad error list
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Dec 8, 2023
1 parent a44c4e2 commit 8f4301e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/baderror/baderror.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ func WrapQUIC(err error) error {
if err == nil {
return nil
}
if Contains(err, "canceled by local with error code 0") {
if Contains(err,
"canceled by remote with error code 0",
"canceled by local with error code 0",
) {
return net.ErrClosed
}
return err
Expand Down

0 comments on commit 8f4301e

Please sign in to comment.