ygrek / ocurl

OCaml bindings to libcurl
https://ygrek.org/p/ocurl
MIT License
60 stars 32 forks source link

Curl_lwt.set_debug possibly broken under Windows #27

Closed alainfrisch closed 6 years ago

alainfrisch commented 6 years ago

Curl_lwt defines:

let int_of_fd : Unix.file_descr -> int = Obj.magic

which is unsafe under Windows (Unix.file_descr being a custom block). Luckily, this is only used in debug mode, and only for printing the resulting integer.

ygrek commented 6 years ago

Thanks for report. Probably can be dropped now, curl_lwt seems to work fine, so no big need to keep debug knobs.