You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"hangs" = curl client hangs, the ~stop argument of the server (the _ Promise.t) does not stop the server but the server logs show that it can handle more than one request.
For the historians: I had something that worked with 6.0.0~alpha1 and an earlier Eio that included being able to log the body of the response before sending it; with master since it's an Eio.Flow.t logging it, even with Eio.Flow.copy, consumes the stream so it is empty when flow_to_writer is called.
@talex5 should Eio.Flow.copy be called transfer or move instead?
Using the current
master
branch.I have server code that hangs with:
"hangs" =
curl
client hangs, the~stop
argument of the server (the_ Promise.t
) does not stop the server but the server logs show that it can handle more than one request.It seems better with:
"better = at least the client is "unlocked" and the
~stop
argument (the_ Promise.t
) does it's job. But the body is not actually transmitted.It seems that this loop in
cohttp-eio/src/utils.ml
exits before sending any bytes:This is the debug output (in both cases of
~body:
argument):Any ideas?
(Eio 0.13, OCaml 5.1)
The text was updated successfully, but these errors were encountered: