caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Yitzhak Mandelbaum <yitzhak@research.att.com>
To: Eric Cooper <ecc@cmu.edu>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Ocamlnet and EINPROGRESS
Date: Wed, 2 Apr 2008 22:08:55 -0400	[thread overview]
Message-ID: <46F1D786-911B-4177-8D51-82D86F4E6D45@research.att.com> (raw)
In-Reply-To: <20080403015251.GA20849@stratocaster.home>

[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 6603 bytes --]

  reply	other threads:[~2008-04-03  2:08 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 ` [Caml-list] " Eric Cooper
2008-04-03  2:08   ` Yitzhak Mandelbaum [this message]
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=46F1D786-911B-4177-8D51-82D86F4E6D45@research.att.com \
    --to=yitzhak@research.att.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=ecc@cmu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).