[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] strerror() on Win32
From: |
Gisle Vanem |
Subject: |
[Bug-wget] strerror() on Win32 |
Date: |
Thu, 13 Oct 2016 22:42:03 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
I think I've mentioned earlier; the troubles with strerror()
returning "Unknown error" for seemingly common 'errno' values.
I hit me today, when connection to my ftp-hosting service. From
the Wsock-trace [1] of connect():
* 49.163 sec: f:/MingW32/src/gnu/gnulib/lib/connect.c(43) (rpl_connect+64):
connect (620, 46.30.213.77:21, fam AF_INET) --> WSAETIMEDOUT (10060).
failed: Unknown error.
I put some trace-code in Wget's connect.c and do see 'errno' is 138.
Which is ETIMEDOUT as defined by Gnulib's <errno.h>. But I fail to
understand why Gnulib's strerror(138) is incapable of handling it.
Looking at Gnulib's strerror-override.c, I see it should return
"Connection timed out" there. But it doesn't. Any pointers?
I'm on Win-10 using MSVC-2015.
[1]: https://github.com/gvanem/wsock-trace
--
--gv
- [Bug-wget] strerror() on Win32,
Gisle Vanem <=