Skip to content

Commit 4c28aad

Browse files
committed
Compatibility with eio.0.13 and cohttp-eio.6.0.0
This sets lower bounds for eio and ensure compatibility with a wider range of versions.
1 parent 2cff300 commit 4c28aad

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dune-project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
(depends
1919
(ocaml (>= 4.08.1))
2020
(camlzip (>= 1.04))
21-
cohttp-eio
21+
(cohttp-eio (>= 6.0.0))
2222
http
2323
cryptokit
2424
(ipaddr (>= 2.1))
25-
eio
25+
(eio (>= 0.13))
2626
eio_main
2727
lwt_react
2828
lwt_ssl

ocsigenserver.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ depends: [
1313
"dune" {>= "3.19"}
1414
"ocaml" {>= "4.08.1"}
1515
"camlzip" {>= "1.04"}
16-
"cohttp-eio"
16+
"cohttp-eio" {>= "6.0.0"}
1717
"http"
1818
"cryptokit"
1919
"ipaddr" {>= "2.1"}
20-
"eio"
20+
"eio" {>= "0.13"}
2121
"eio_main"
2222
"lwt_react"
2323
"lwt_ssl"

src/baselib/ocsigen_stream.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ let of_file filename =
219219
(Eio_unix.Net.import_socket_stream
220220
~sw:(Stdlib.Option.get (Fiber.get Ocsigen_lib.current_switch))
221221
~close_unix:true fd
222-
: [`R | `Flow | `Close] r)
222+
:> [`R | `Flow | `Close] r)
223223
in
224224
let buf = Cstruct.create 1024 in
225225
let rec aux () =

src/server/ocsigen_server.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ let main config =
273273
|> fun x1 ->
274274
Eio.Buf_read.of_flow ~max_size:1_000_000
275275
(Eio_unix.Net.import_socket_stream ~sw ~close_unix:true x1
276-
: [`R | `Flow | `Close] r)
276+
:> [`R | `Flow | `Close] r)
277277
in
278278
let rec f () =
279279
let s = Eio.Buf_read.line pipe in
@@ -349,7 +349,7 @@ let main config =
349349
let run () =
350350
Eio_main.run (fun env ->
351351
Fiber.with_binding Ocsigen_lib.env env (fun () ->
352-
Switch.run ~name:"main" (fun sw ->
352+
Switch.run (fun sw ->
353353
Fiber.with_binding Ocsigen_lib.current_switch sw run)))
354354
in
355355
(* set_passwd_if_needed sslinfo; *)

0 commit comments

Comments
 (0)