Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Eio 0.7 #952

Merged
merged 1 commit into from Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
@@ -1,6 +1,7 @@
## Unreleased
- Upgrade dune to v3.0 (bikallem #947)
- cohttp-eio: allow client to optionally configure request pipelining (bikallem #949)
- cohttp-eio: update to Eio 0.7 (talex5 #952)

## v6.0.0~alpha0 (2022-10-24)
- cohttp-eio: ensure "Host" header is the first header in http client requests (bikallem #939)
Expand Down
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