This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

AW: cygwin not setting errno on "Connection refused" errors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]