From: Török E. <edw...@et...> - 2013-09-03 07:37:54
|
Hi, Using Https_client with OCamlnet 3.6.3 and 3.7.3 some exceptions seem to escape the pipeline. For example if I take examples/netclient/simple/http_download.ml, and initialize Https_client according to the docs and trigger an https error on purpose (try to use HTTPS on an HTTP port): Fatal error: exception Invalid_argument("remove_resource: the group is terminated") Also if I take examples/netclient/simple/http_mt.ml and initialize Https_client as the docs suggest I get this on an https error: Thread 1 killed on uncaught exception Invalid_argument("remove_resource: the group is terminated") With Http_client and pipeline#add_with_callback everything is fine: I get my callback invoked, and I can check http_call#status for the actual error, and the pipeline keeps working. With Https_client and the Convenience module I get the exception but since it creates a new pipeline each time I can just wrap it and catch the exception there, and keep using it after the first error. With the pipeline it looks like after the first https error the pipeline becomes unusable. What am I doing wrong? I have attached a testcase, let me know if you need more info. Best regards, --Edwin |