From: Gerd S. <in...@ge...> - 2013-09-07 22:26:30
|
Hi, this is a bug in the error path. The fix was quite simple. Find it in svn for the time being (revs 1906 and 1907): https://godirepo.camlcity.org/svn/lib-ocamlnet2/trunk/code/ I don't see a workaround outside ocamlnet. Gerd Am Dienstag, den 03.09.2013, 10:37 +0300 schrieb Török Edwin: > 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 > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ Ocamlnet-devel mailing list Oca...@li... https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany ge...@ge... My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------ |