* cygwin not setting errno on "Connection refused" errors
@ 2014-05-31 8:40 Luke White
2014-06-16 13:11 ` Corinna Vinschen
0 siblings, 1 reply; 5+ messages in thread
From: Luke White @ 2014-05-31 8:40 UTC (permalink / raw)
To: cygwin
I just updated cygwin today, and I've noticed that errno is not being
set when there's a connection refused error. This appears to be true
for INET and UNIX domain sockets.
For example:
$ ssh -p 12345 localhost
ssh: connect to host localhost port 12345: No error
Notice how it reports "No error" instead of "Connection refused".
I'm using version 1.7.30 of cygwin64. I don't remember what version I
was at before I upgraded.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cygwin not setting errno on "Connection refused" errors
2014-05-31 8:40 cygwin not setting errno on "Connection refused" errors Luke White
@ 2014-06-16 13:11 ` Corinna Vinschen
2014-06-16 17:43 ` AW: " Christoph H. Hochstaetter
0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2014-06-16 13:11 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
On May 30 19:01, Luke White wrote:
> I just updated cygwin today, and I've noticed that errno is not being
> set when there's a connection refused error. This appears to be true
> for INET and UNIX domain sockets.
>
> For example:
>
> $ ssh -p 12345 localhost
> ssh: connect to host localhost port 12345: No error
>
>
> Notice how it reports "No error" instead of "Connection refused".
https://cygwin.com/ml/cygwin/2014-06/msg00172.html
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* AW: cygwin not setting errno on "Connection refused" errors
2014-06-16 13:11 ` Corinna Vinschen
@ 2014-06-16 17:43 ` Christoph H. Hochstaetter
2014-06-16 17:58 ` Corinna Vinschen
0 siblings, 1 reply; 5+ messages in thread
From: Christoph H. Hochstaetter @ 2014-06-16 17:43 UTC (permalink / raw)
To: cygwin
On June 16 15:12 Corinna Vinschen wrote:
>On May 30 19:01, Luke White wrote:
>> I just updated cygwin today, and I've noticed that errno is not being
>> set when there's a connection refused error. This appears to be true
>> for INET and UNIX domain sockets.
>>
>> For example:
>>
>> $ ssh -p 12345 localhost
>> ssh: connect to host localhost port 12345: No error
>>
>>
>> Notice how it reports "No error" instead of "Connection refused".
>
>https://cygwin.com/ml/cygwin/2014-06/msg00172.html
>
>
>Corinna
Works as expected again with today's snapshot (couldn't test dup'd sockets
quickly, sorry):
[user@host ~] $ ssh -p 4711 localhost
ssh: connect to host localhost port 4711: Connection refused
[user@host ~] $ ssh www.google.com
ssh: connect to host www.google.com port 22: Connection timed out
Thx
-Christoph
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cygwin not setting errno on "Connection refused" errors
2014-06-16 17:43 ` AW: " Christoph H. Hochstaetter
@ 2014-06-16 17:58 ` Corinna Vinschen
0 siblings, 0 replies; 5+ messages in thread
From: Corinna Vinschen @ 2014-06-16 17:58 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1126 bytes --]
On Jun 16 19:43, Christoph H. Hochstaetter wrote:
> On June 16 15:12 Corinna Vinschen wrote:
> >On May 30 19:01, Luke White wrote:
> >> I just updated cygwin today, and I've noticed that errno is not being
> >> set when there's a connection refused error. This appears to be true
> >> for INET and UNIX domain sockets.
> >>
> >> For example:
> >>
> >> $ ssh -p 12345 localhost
> >> ssh: connect to host localhost port 12345: No error
> >>
> >>
> >> Notice how it reports "No error" instead of "Connection refused".
> >
> >https://cygwin.com/ml/cygwin/2014-06/msg00172.html
> >
> >
> >Corinna
>
> Works as expected again with today's snapshot (couldn't test dup'd sockets
> quickly, sorry):
>
> [user@host ~] $ ssh -p 4711 localhost
> ssh: connect to host localhost port 4711: Connection refused
> [user@host ~] $ ssh www.google.com
> ssh: connect to host www.google.com port 22: Connection timed out
>
> Thx
Thank you for testing,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* cygwin not setting errno on "Connection refused" errors
@ 2014-06-06 19:17 Christoph H. Hochstaetter
0 siblings, 0 replies; 5+ messages in thread
From: Christoph H. Hochstaetter @ 2014-06-06 19:17 UTC (permalink / raw)
To: cygwin
>I just updated cygwin today, and I've noticed that errno is not being
>set when there's a connection refused error. This appears to be true
>for INET and UNIX domain sockets.
>
>For example:
>
>$ ssh -p 12345 localhost
>ssh: connect to host localhost port 12345: No error
>
>
>Notice how it reports "No error" instead of "Connection refused".
>
>I'm using version 1.7.30 of cygwin64. I don't remember what version I
>was at before I upgraded.
I can confirm that this happens to every application using connect().
errno always returns 0 if connect() returns < 0. strerror() then correctly
says "No error". Worked in 1.7.29. Tested with 64 bit only.
-Christoph
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-16 17:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-31 8:40 cygwin not setting errno on "Connection refused" errors Luke White
2014-06-16 13:11 ` Corinna Vinschen
2014-06-16 17:43 ` AW: " Christoph H. Hochstaetter
2014-06-16 17:58 ` Corinna Vinschen
2014-06-06 19:17 Christoph H. Hochstaetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).