From: Kiran Pamnany <kiran@cs.brown.edu>
To: caml-list@yquem.inria.fr
Subject: Matching problem?
Date: Mon, 13 Aug 2007 12:58:56 -0400 [thread overview]
Message-ID: <1187024336.46c08dd0c1ea7@webmail.cs.brown.edu> (raw)
...
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.
next reply other threads:[~2007-08-13 16:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-13 16:58 Kiran Pamnany [this message]
2007-08-14 8:02 ` [Caml-list] " Andrej Bauer
2007-08-14 11:10 ` Kiran Pamnany
2007-08-14 11:26 ` malc
2007-08-14 12:57 ` Kiran Pamnany
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=1187024336.46c08dd0c1ea7@webmail.cs.brown.edu \
--to=kiran@cs.brown.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