Artifacts Associated With Ticket 219237
Ticket change [c9b5a371cb] (rid 122336) by nobody on 2000-10-26 05:03:58:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 4754 Bug Version: 8.3 SubmitDate: '2000-03-30' LastModified: '2000-03-31' Severity: MED Status: Assigned Submitter: sandeep ChangedBy: ericm OS: All FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Steps to reproduce: 1. socket donexist.com 80 Expected Result: "couldn't open socket: host is unreachable" error Actual Result: On Linux and Solaris, you get the expected result. On NT, you get "couldn't open socket: invalid argument" At the least, the error messages should be consistent. In tclUnixChan.c it looks like it is returning EHOSTUNREACH (and that is supported by the error message printed). On Windows it looks like it is too, but clearly it's not. Somebody else must be setting errno. - eric -- 03/31/2000 ericm
- foundin initialized to: "obsolete: 8.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "63. (unused)"
- title initialized to:
Inconsistent socket error messages between NT and UNIX
- type initialized to: "Bug"
Ticket change [c7e3017ecb] (rid 122018) by dgp on 2001-04-01 01:47:32:
- subsystem changed to: "27. Channel Types"
Ticket change [99a0b50e56] (rid 110826) by andreas_kupries on 2001-09-08 06:37:12:
- assignee changed to: "davygrvy"
- icomment:
Logged In: YES user_id=75003 Is there something we can do here ? Assign to me later.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
Ticket change [31fb804118] (rid 93530) by davygrvy on 2001-09-08 06:51:20:
- assignee changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=7549 I can't look at this right now. If I had the time, it looks easy though.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
Ticket change [a43f9db3d8] (rid 110180) by andreas_kupries on 2001-09-14 06:41:40:
- priority changed to: "3 Low"
Ticket change [9f1462d774] (rid 96579) by davygrvy on 2003-04-23 03:55:17:
- icomment:
File Added - 48448: patch.txt Logged In: YES user_id=7549 generally speaking, winsock error messages are discarded in favor of their posix translation. The trouble is, any non translatable error code becomes EINVAL... shame on Tcl for this loss of info...
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Add attachment "patch.txt" [ba23d513b4] (rid 129269) by davygrvy on 2003-04-23 03:55:17.
Ticket change [bb8aa99e0a] (rid 129503) by davygrvy on 2003-04-23 03:57:24:
- icomment:
Logged In: YES user_id=7549 Notice how WSAHOST_NOT_FOUND is ignored and becomes "invalid argument"!
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [c01abf6c1b] (rid 259726) by serhiy.storchaka on 2026-10-21 10:03:37:
- icomment:
Since 8.6.0 (TIP #162, [3f8b48b6b6]) both platforms resolve host names with getaddrinfo() and report the resolver's own message. On Windows an unknown host now gives "couldn't open socket: No such host is known." instead of "invalid argument" (checked with 8.6.18, 9.0.5 and 9.1).
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [38c4e0d636] (rid 260018) by serhiy.storchaka on 2026-10-22 17:19:31:
- closedate changed to: "2461334.9191894443"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"