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.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 4CC75BC6C for ; Mon, 13 Aug 2007 18:58:58 +0200 (CEST) Received: from pepper.cs.brown.edu (pepper.cs.brown.edu [128.148.32.123]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7DGwv7U008662 for ; Mon, 13 Aug 2007 18:58:58 +0200 Received: from localhost (localhost [127.0.0.1]) by pepper.cs.brown.edu (Postfix) with ESMTP id EBEBF9378A for ; Mon, 13 Aug 2007 12:58:56 -0400 (EDT) Received: from pepper.cs.brown.edu ([127.0.0.1]) by localhost (pepper.cs.brown.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yim9zOsCyACp for ; Mon, 13 Aug 2007 12:58:56 -0400 (EDT) Received: from null.cs.brown.edu (null.cs.brown.edu [128.148.38.190]) by pepper.cs.brown.edu (Postfix) with ESMTP id D13CF93769 for ; Mon, 13 Aug 2007 12:58:56 -0400 (EDT) Received: by null.cs.brown.edu (Postfix, from userid 33) id C952A5B4002; Mon, 13 Aug 2007 12:58:56 -0400 (EDT) Received: from c-66-31-209-180.hsd1.ma.comcast.net (c-66-31-209-180.hsd1.ma.comcast.net [66.31.209.180]) by webmail.cs.brown.edu (IMP) with HTTP for ; Mon, 13 Aug 2007 12:58:56 -0400 Message-ID: <1187024336.46c08dd0c1ea7@webmail.cs.brown.edu> Date: Mon, 13 Aug 2007 12:58:56 -0400 From: Kiran Pamnany To: caml-list@yquem.inria.fr Subject: Matching problem? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Originating-IP: 66.31.209.180 X-Miltered: at discorde with ID 46C08DD1.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; prerr:01 endline:01 printexc:01 netclient:01 unix:01 unix:01 exception:01 output:02 output:02 string:02 clause:03 pattern:04 pattern:04 problem:05 matching:05 ... begin try syscall (fun () -> Unix.connect s ... ... with Unix.Unix_error(UNIX.EINPROGRESS,_,_) -> ... | Unix.Unix_error(e,_,_) -> ... | err -> prerr_endline (Printexc.to_string err) done; ... The output for this is: Unix.Unix_error(38, "connect", "") How is this possible? For background: this code is from the connect_server method in the http_client package from ocamlnet's netclient (I added the last with pattern). I'm trying to write an XML-RPC client, using the XML-RPC package. One simple test client works perfectly. The actual client is giving me this behavior. I put in a try block around the place in the XML-RPC package where http_client is called. The with clause there catches Unix.Unix_error(e,_,_). But, this exception should never leave this connect_server method because there's a pattern which matches it. Even stranger is the output when I added the final with pattern above. What could be going on? Thanks in advance for any tips. K ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.