Skip to content

Commit f8b88c4

Browse files
committed
updates
1 parent 49172a4 commit f8b88c4

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

dune-project

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@
5656
(= :version))
5757
(faraday-lwt-unix
5858
(>= "0.7.3")))
59-
(depopts lwt_ssl tls))
59+
(depopts
60+
(lwt_ssl
61+
(>= "1.2.0"))
62+
tls))
6063

6164
(package
6265
(name gluten-mirage)

eio/gluten_eio.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ module Client = struct
208208
let shutdown t =
209209
t.shutdown_reader ();
210210
Gluten.Client.shutdown t.connection;
211-
Promise.await t.shutdown_complete
211+
t.shutdown_complete
212212

213213
let is_closed t = Gluten.Client.is_closed t.connection
214214
let socket t = t.socket

eio/gluten_eio.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module Client : sig
6262
-> t
6363

6464
val upgrade : t -> Gluten.impl -> unit
65-
val shutdown : t -> unit
65+
val shutdown : t -> unit Eio.Promise.t
6666
val is_closed : t -> bool
6767
val socket : t -> Eio.Flow.two_way
6868
end

gluten-lwt-unix.opam

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ depends: [
1212
"gluten-lwt" {= version}
1313
"faraday-lwt-unix" {>= "0.7.3"}
1414
]
15-
depopts: ["lwt_ssl" "tls"]
15+
depopts: [
16+
"lwt_ssl" {>= "1.2.0"}
17+
"tls"
18+
]
1619
build: [
1720
["dune" "subst"] {pinned}
1821
[

lib/gluten.mli

-11
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,22 @@ module type RUNTIME = sig
3434
type t
3535

3636
val next_read_operation : t -> [ `Read | `Yield | `Close ]
37-
3837
val read : t -> Bigstringaf.t -> off:int -> len:int -> int
39-
4038
val read_eof : t -> Bigstringaf.t -> off:int -> len:int -> int
41-
4239
val yield_reader : t -> (unit -> unit) -> unit
4340

4441
val next_write_operation
4542
: t
4643
-> [ `Write of Bigstringaf.t Faraday.iovec list | `Yield | `Close of int ]
4744

4845
val report_write_result : t -> [ `Ok of int | `Closed ] -> unit
49-
5046
val yield_writer : t -> (unit -> unit) -> unit
51-
5247
val report_exn : t -> exn -> unit
53-
5448
val is_closed : t -> bool
55-
5649
val shutdown : t -> unit
5750
end
5851

5952
type 't runtime = (module RUNTIME with type t = 't)
60-
6153
type impl
6254

6355
val make : 't runtime -> 't -> impl
@@ -73,7 +65,6 @@ module Server : sig
7365
include RUNTIME
7466

7567
val create : protocol:'t runtime -> 't -> t
76-
7768
val upgrade_protocol : t -> impl -> unit
7869

7970
type 'reqd request_handler = 'reqd Reqd.t -> unit
@@ -89,7 +80,6 @@ module Client : sig
8980
include RUNTIME
9081

9182
val create : protocol:'t runtime -> 't -> t
92-
9383
val upgrade_protocol : t -> impl -> unit
9484
end
9585

@@ -103,7 +93,6 @@ module Buffer : sig
10393
type t
10494

10595
val create : int -> t
106-
10796
val get : t -> f:(Bigstringaf.t -> off:int -> len:int -> int) -> int
10897

10998
val put

0 commit comments

Comments
 (0)