Skip to content

Commit

Permalink
Update for Eio 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
talex5 committed Dec 7, 2022
1 parent 4503105 commit 33c79bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cohttp-eio.opam
Expand Up @@ -21,7 +21,7 @@ bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
depends: [
"dune" {>= "3.0"}
"base-domains"
"eio" {>= "0.6"}
"eio" {>= "0.7"}
"eio_main" {with-test}
"mdx" {with-test}
"uri" {with-test}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-eio/src/server.ml
Expand Up @@ -115,7 +115,7 @@ let rec handle_request client_addr reader writer flow handler =
write_response ~request writer (response, body);
if Http.Request.is_keep_alive request then
handle_request client_addr reader writer flow handler
| (exception End_of_file) | (exception Eio.Net.Connection_reset _) -> ()
| exception End_of_file | exception Eio.Io (Eio.Net.E Connection_reset _, _) -> ()
| exception (Failure _ as ex) ->
write_response writer bad_request_response;
raise ex
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Expand Up @@ -361,7 +361,7 @@ should also be fine under Windows too.
"A CoHTTP server and client implementation based on `eio` library. `cohttp-eio`features a multicore capable HTTP 1.1 server. The library promotes and is built with direct style of coding as opposed to a monadic.")
(depends
base-domains
(eio (>= 0.6))
(eio (>= 0.7))
(eio_main :with-test)
(mdx :with-test)
(uri :with-test)
Expand Down

0 comments on commit 33c79bc

Please sign in to comment.