Skip to content

Commit ce60ae6

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 db3e2be commit ce60ae6

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
@@ -286,7 +286,7 @@ let main config =
286286
|> fun x1 ->
287287
Eio.Buf_read.of_flow ~max_size:1_000_000
288288
(Eio_unix.Net.import_socket_stream ~sw ~close_unix:true x1
289-
: [`R | `Flow | `Close] r)
289+
:> [`R | `Flow | `Close] r)
290290
in
291291
let rec f () =
292292
let s = Eio.Buf_read.line pipe in
@@ -362,7 +362,7 @@ let main config =
362362
let run () =
363363
Eio_main.run (fun env ->
364364
Fiber.with_binding Ocsigen_lib.env env (fun () ->
365-
Switch.run ~name:"main" (fun sw ->
365+
Switch.run (fun sw ->
366366
Fiber.with_binding Ocsigen_lib.current_switch sw run)))
367367
in
368368
(* set_passwd_if_needed sslinfo; *)

0 commit comments

Comments
 (0)