Skip to content

Commit cc0274d

Browse files
authored
Merge pull request #783 from talex5/windows-conn-aborted
eio_windows: group ECONNABORTED with other connection reset errors
2 parents 2d9e24a + b971fa1 commit cc0274d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib_eio_windows/err.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let wrap code name arg =
2020
| ENOENT -> Eio.Fs.err (Not_found e)
2121
| EXDEV | EACCES | EPERM -> Eio.Fs.err (Permission_denied e)
2222
| ECONNREFUSED -> Eio.Net.err (Connection_failure (Refused e))
23-
| ECONNRESET | EPIPE -> Eio.Net.err (Connection_reset e)
23+
| ECONNRESET | EPIPE | ECONNABORTED -> Eio.Net.err (Connection_reset e)
2424
| _ -> unclassified_error e
2525

2626
let run fn x =

0 commit comments

Comments
 (0)