Sure, here's one: let mystring = Http_client.Convenience.http_get "http://www.cnn.com" But, whether or not it raises the exception depends what I link it with, which is the essential problem. Yitzhak On Apr 2, 2008, at 9:52 PM, Eric Cooper wrote: > On Wed, Apr 02, 2008 at 09:06:56PM -0400, Yitzhak Mandelbaum wrote: >> I'm using the Http_client.Convenience module to get web pages. >> Unfortunately, if I link the Unix module into my program, then >> suddenly >> I get the Unix_error exception with code EINPROGRESS (38). > > I don't see this with a trivial program that just does http_get: > open Http_client.Convenience > let () = print_string (http_get Sys.argv.(1)) > > The EINPROGRESS is from a connect() call on a socket that's been set > non-blocking. Running the above program under strace shows that this > occurs, but it's handled within http_get. > > Can you post a minimal example that shows the exception escaping? > > -- > Eric Cooper e c c @ c m u . e d u > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs -------------------------------------------------- Yitzhak Mandelbaum AT&T Labs - Research http://www.research.att.com/~yitzhak