Add ENETUNREACH and EADDRNOTAVAIL to the list of errors that are potentially

transient and shouldn't result in closing the socket and giving up forever.
This commit is contained in:
Ian Lepore 2013-11-13 01:04:02 +00:00
parent 6a3e86ff22
commit f0c7dfca42
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258077

View File

@ -1242,8 +1242,10 @@ fprintlog(struct filed *f, int flags, const char *msg)
switch (errno) {
case ENOBUFS:
case ENETDOWN:
case ENETUNREACH:
case EHOSTUNREACH:
case EHOSTDOWN:
case EADDRNOTAVAIL:
break;
/* case EBADF: */
/* case EACCES: */
@ -1254,7 +1256,7 @@ fprintlog(struct filed *f, int flags, const char *msg)
/* case ENOBUFS: */
/* case ECONNREFUSED: */
default:
dprintf("removing entry\n");
dprintf("removing entry: errno=%d\n", e);
f->f_type = F_UNUSED;
break;
}