You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 472 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
let _ =
let local_addr = ADDR_INET (inet_addr_any, 0) in
let sock = socket PF_INET SOCK_DGRAM 0 in
setsockopt sock SO_REUSEADDR true;
()
Furthermore, I think there is a bug in win32unix/sockopt.c.
The socket conversion should be performed using:
(SOCKET)Handle_val(v)
not:
Int_val
Yes, that's the cause of the failure. Untested cut-and-paste from the
modified Unix sources strikes again. (Blush.) This is fixed in the
working sources, but still rather unfortunate. Thanks for the quick
bug report.
Original bug ID: 472
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Ohad Rodeh
Version: 3.02
OS: WIN2000
Submission from: sungold1.il.ibm.com (192.116.181.41)
The following program fails:
open Printf
open Unix
let _ =
let local_addr = ADDR_INET (inet_addr_any, 0) in
let sock = socket PF_INET SOCK_DGRAM 0 in
setsockopt sock SO_REUSEADDR true;
()
Furthermore, I think there is a bug in win32unix/sockopt.c.
The socket conversion should be performed using:
(SOCKET)Handle_val(v)
not:
Inv_val
The text was updated successfully, but these errors were encountered: