Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression on Unix.open_connection #2334

Closed
vicuna opened this issue Mar 11, 2004 · 1 comment
Closed

Regression on Unix.open_connection #2334

vicuna opened this issue Mar 11, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 11, 2004

Original bug ID: 2334
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Loic Correnson
Version: 3.07+2
OS: W2K, native port
Submission from: mailhost.trusted-logic.fr (194.250.150.5)

Using ocaml on Windows 2000 with native port (no cygwin nor mingw):
Unix.open_connection works fairly well with ocaml 3.06, but no more with the
3.07.

Assume a socket server has been established from the outside on local port
9025:

open Unix ;;

let addr = inet_addr_of_string "127.0.0.1" ;;

let sock = ADDR_INET(addr,9025) ;;

let (inc,out) = open_connection sock ;;

Printf.fprintf out "ack\n" ;;

Then:

flush out ;;

Under ocaml 3.07+2:
Exception: Sys_error "Bad file descriptor".

Under ocaml 3.06:

  • : unit = ()
@vicuna
Copy link
Author

vicuna commented Apr 1, 2004

Comment author: administrator

Fixed 2004-04-01 by XL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant