Don't report refused connections.

This commit is contained in:
Martin Mares 2000-05-08 12:09:10 +00:00
parent b6c9d8eb2e
commit 9cbf43eb8a

View file

@ -628,7 +628,8 @@ sk_open(sock *s)
case SK_TCP_ACTIVE:
if (connect(fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0)
sk_tcp_connected(s);
else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS)
else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS &&
errno != ECONNREFUSED && errno != EHOSTUNREACH)
ERR("connect");
break;
case SK_TCP_PASSIVE: