From: Eric Cooper <ecc@cmu.edu>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Ocamlnet and EINPROGRESS
Date: Wed, 2 Apr 2008 21:52:51 -0400 [thread overview]
Message-ID: <20080403015251.GA20849@stratocaster.home> (raw)
In-Reply-To: <42D3D95E-3C90-4C9E-BB4B-34F8107DE4F6@research.att.com>
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
next prev parent reply other threads:[~2008-04-03 1:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-03 1:06 Yitzhak Mandelbaum
2008-04-03 1:52 ` Eric Cooper [this message]
2008-04-03 2:08 ` [Caml-list] " Yitzhak Mandelbaum
2008-04-03 2:30 ` Eric Cooper
2008-04-03 2:43 ` Yitzhak Mandelbaum
2008-04-03 7:12 ` Stéphane Glondu
2008-04-03 13:33 ` Dario Teixeira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080403015251.GA20849@stratocaster.home \
--to=ecc@cmu.edu \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox