From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=AWL,HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 86F7BBBCA for ; Thu, 3 Apr 2008 04:08:59 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao0BACnZ80fAFOFvo2dsb2JhbACCQTGCGYxFAQEBAQEBBwUJBxaaJw X-IronPort-AV: E=Sophos;i="4.25,596,1199660400"; d="scan'208,217";a="10350024" Received: from mail-pink.research.att.com ([192.20.225.111]) by mail1-smtp-roc.national.inria.fr with ESMTP; 03 Apr 2008 04:08:58 +0200 Received: from mail-green.research.att.com (H-135-207-30-103.research.att.com [135.207.30.103]) by mail-pink.research.att.com (Postfix) with ESMTP id 2224D194715; Wed, 2 Apr 2008 22:08:58 -0400 (EDT) Received: from bigmail.research.att.com (bigmail.research.att.com [135.207.30.101]) by mail-green.research.att.com (Postfix) with ESMTP id 082CE87F9; Wed, 2 Apr 2008 22:08:58 -0400 (EDT) Received: from [192.168.0.100] (vpn-22.research.att.com [135.207.240.22]) by bigmail.research.att.com (8.13.7+Sun/8.11.6) with ESMTP id m3328vBD024678; Wed, 2 Apr 2008 22:08:57 -0400 (EDT) In-Reply-To: <20080403015251.GA20849@stratocaster.home> References: <42D3D95E-3C90-4C9E-BB4B-34F8107DE4F6@research.att.com> <20080403015251.GA20849@stratocaster.home> Mime-Version: 1.0 (Apple Message framework v753) Content-Type: multipart/alternative; boundary=Apple-Mail-83--899414618 Message-Id: <46F1D786-911B-4177-8D51-82D86F4E6D45@research.att.com> Cc: caml-list@yquem.inria.fr From: Yitzhak Mandelbaum Subject: Re: [Caml-list] Ocamlnet and EINPROGRESS Date: Wed, 2 Apr 2008 22:08:55 -0400 To: Eric Cooper X-Mailer: Apple Mail (2.753) X-Spam: no; 0.00; yitzhak:01 mandelbaum:01 yitzhak:01 ocamlnet:01 mandelbaum:01 trivial:01 argv:01 non-blocking:01 strace:01 beginner's:01 ocaml:01 bug:01 trivial:01 argv:01 non-blocking:01 --Apple-Mail-83--899414618 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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 --Apple-Mail-83--899414618 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Sure, here's one:

let mystring =3D = Http_client.Convenience.http_get "http://www.cnn.com"

<= div>But, whether or not it raises the exception depends what I link it = with, which is the essential = problem.=A0

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:
=A0 =A0 open = Http_client.Convenience
=A0 =A0 let () =3D print_string = (http_get Sys.argv.(1))

The EINPROGRESS is from a = connect() call on a socket that's been set
=A0 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?

--=A0
Eric = Cooper =A0 =A0 =A0 =A0 =A0 =A0 = e c c @ c m u . e d u

Caml-list mailing list. Subscription = management:

http://www.research.att.com/= ~yitzhak

=
= --Apple-Mail-83--899414618--