From: "David Allsopp" <dra-news@metastack.com>
To: "OCaml List" <caml-list@inria.fr>
Subject: [Caml-list] Windows problem with Unix.open_connection
Date: Fri, 24 Feb 2012 15:17:59 -0000 [thread overview]
Message-ID: <000e01ccf307$7ef68eb0$7ce3ac10$@metastack.com> (raw)
I'm in the process of eliminating any customisations I might have in place,
but do any other Windows users get the following unexpected result with
Unix.open_connection running MinGW-w64 OCaml 3.12.1?
# let (i, o) = Unix.open_connection (Unix.ADDR_INET
(Unix.inet_addr_of_string "173.194.67.104", 80));;
val i : in_channel = <abstr>
val o : out_channel = <abstr>
# output_string o "GET HTTP/1.0\r\n\r\n";;
- : unit = ()
# flush o;;
Exception: Sys_error "Invalid argument".
# input_line i;;
Exception: Sys_error "Invalid argument".
# close_out o;;
WireShark confirms that a connection is correctly made to Google on port 80
by Unix.open_connection but something would appear to be seriously wrong
with the handle translations in Unix.open_connection.
David
reply other threads:[~2012-02-24 15:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='000e01ccf307$7ef68eb0$7ce3ac10$@metastack.com' \
--to=dra-news@metastack.com \
--cc=caml-list@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