Skip to content

Commit

Permalink
Merge pull request ocaml-multicore#783 from talex5/windows-conn-aborted
Browse files Browse the repository at this point in the history
eio_windows: group ECONNABORTED with other connection reset errors
  • Loading branch information
talex5 authored Nov 22, 2024
2 parents 2d9e24a + b971fa1 commit cc0274d
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 cc0274d

Please sign in to comment.