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:
parent
6a3e86ff22
commit
f0c7dfca42
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user