Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Ocamlnet and EINPROGRESS
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Eric Cooper <ecc@c...>
Subject: Re: [Caml-list] Ocamlnet and EINPROGRESS
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