public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 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
* 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).