Alternate, WinSock friendly reporting for host lookup failures.
This commit is contained in:
@@ -210,9 +210,8 @@ NetChannel::handleResolve()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!addr.isValid()) {
|
if (!addr.isValid()) {
|
||||||
// I'm absuing ENETUNREACH, all we do is pass this to strerror
|
SG_LOG(SG_IO, SG_WARN, "Network: host lookup failed:" << host);
|
||||||
// in handleError
|
handleError (0);
|
||||||
handleError (ENETUNREACH);
|
|
||||||
close();
|
close();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user