This is the mail archive of the
cygwin
mailing list for the Cygwin project.
AW: cygwin not setting errno on "Connection refused" errors
- From: "Christoph H. Hochstaetter" <christoph at hochstaetter dot de>
- To: cygwin at cygwin dot com
- Date: Mon, 16 Jun 2014 19:43:48 +0200
- Subject: AW: cygwin not setting errno on "Connection refused" errors
- Authentication-results: sourceware.org; auth=none
- References: <CAAZXUtyG0=j+kLdwOzPJOk-41bVWBZuezc-mAxvgvArq0EgnnA at mail dot gmail dot com> <20140616131144 dot GD23700 at calimero dot vinschen dot de>
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