Check for EHOSTUNREACH when establishing a connection.

Reviewed by:	trasz
This commit is contained in:
Kevin Lo 2013-10-17 01:59:08 +00:00
parent 83bbd5ebf9
commit e3c60d1497
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256659

View File

@ -199,6 +199,7 @@ tcpConnect(isess_t *sess)
perror("connect");
switch(sv_errno) {
case ECONNREFUSED:
case EHOSTUNREACH:
case ENETUNREACH:
case ETIMEDOUT:
if((sess->flags & SESS_REDIRECT) == 0) {