We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6296283 + ca2d63a commit b629b55Copy full SHA for b629b55
lib/grpc-lwt/client.ml
@@ -84,6 +84,10 @@ module Rpc = struct
84
let unary ~f enc write_body read_body =
85
let payload = Grpc.Message.make enc in
86
H2.Body.Writer.write_string write_body payload;
87
+ let wait_until_flushed, flushed = Lwt.wait () in
88
+ let callback _ = Lwt.wakeup flushed () in
89
+ H2.Body.Writer.flush write_body callback;
90
+ let* () = wait_until_flushed in
91
H2.Body.Writer.close write_body;
92
let* read_body = read_body in
93
let request_buffer = Grpc.Buffer.v () in
0 commit comments