Le 28/01/2017 à 17:34, Rudi Grinberg a écrit :
>
> Let's see if Vincent has made progress on this already. I'm happy to
> join his
> effort if that's the case.
I started something here:
https://github.com/mirleft/ocaml-tls/pull/355
I followed the existing Lwt backend and tried to adapt to Async.
I'm at the bugfixing stage, it's not working yet, and I hope I did not
completely misunderstood how I should proceed on this.
The main difference with Lwt is that the Lwt implementation works on the
socket (file descriptor) level and produce a Lwt_io interface on top of
it, whereas in Async, the way IO is performed is different and it seems
we have to work with Reader/Writer directly.
It should not be really difficult at all, but I don't have that much
time to work on it.
My main motivator was that Async_ssl is leaking memory, and instead of
trying to find the memory leak in it (now possible thanks to Spacetime),
I felt I would try my luck adapting ocaml-tls to Async.
I'm not against somebody looking at my code and trying to spot obvious
issues in it. The ocaml-tls team seems not that interested/available to
work on this at this time.
Best,
--
Vincent