Skip to content

Commit

Permalink
eio_windows: group ECONNABORTED with other connection reset errors
Browse files Browse the repository at this point in the history
Windows returns this if the other end disconnects (seen while testing
with both ends on the same machine).
  • Loading branch information
talex5 committed Nov 21, 2024
1 parent 2d9e24a commit b971fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib_eio_windows/err.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let wrap code name arg =
| ENOENT -> Eio.Fs.err (Not_found e)
| EXDEV | EACCES | EPERM -> Eio.Fs.err (Permission_denied e)
| ECONNREFUSED -> Eio.Net.err (Connection_failure (Refused e))
| ECONNRESET | EPIPE -> Eio.Net.err (Connection_reset e)
| ECONNRESET | EPIPE | ECONNABORTED -> Eio.Net.err (Connection_reset e)
| _ -> unclassified_error e

let run fn x =
Expand Down

0 comments on commit b971fa1

Please sign in to comment.