ygrek / ocurl

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

+CURLOPT_TCP_FASTOPEN #52

Closed dwwoelfel closed 3 years ago

dwwoelfel commented 3 years ago

Adds support for CURLOPT_TCP_FASTOPEN, added in 7.49.0.

This will return CURLE_NOT_BUILT_IN on operating systems that don't support it (the curl doc says it works on linux and mac > el capitan). Do I need to do something special to handle that error case?

ygrek commented 3 years ago

SETOPT_BOOL includes code to raise exn in case setopt is not CURLE_OK, so it is handled automatically. Thanks!