ocaml-cohttp icon indicating copy to clipboard operation
ocaml-cohttp copied to clipboard

Async exn: Cohttp_lwt__Connection.Retry while Cohttp_lwt_unix.Client.call (OCaml 5, cohttp --dev)

Open smondet opened this issue 3 years ago • 2 comments

With today's master branch.

I have some code using Cohttp_lwt_unix.Client.call which works with OCaml 4.14.* and the released Cohttp.

On OCaml 5 it fails Cohttp_lwt__Connection.Retry, on a regular GET. Exception appears async (Shows up in the Lwt.async_exception_hook, cannot be caught).

smondet avatar Jan 13 '23 00:01 smondet

I get this exception with Cohttp_lwt_unix.Client.get version 6.0.0~alpha1. I also observe the async behavior.

That it's defined in module Connection seems to indicate that it shouldn't leak through functions in module Client ?

Julow avatar Jun 05 '23 11:06 Julow

Is the new alpha release still failing?

mseri avatar Sep 18 '23 13:09 mseri