Don't report refused connections.
This commit is contained in:
parent
b6c9d8eb2e
commit
9cbf43eb8a
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue