Skip to content

Commit

Permalink
treat EADDRNOTAVAIL (Cannot assign requested address) as a soft error…
Browse files Browse the repository at this point in the history
… and try other addresses.
  • Loading branch information
lavv17 committed Apr 25, 2016
1 parent c8ca3f8 commit 58bfcfc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/misc.cc
Expand Up @@ -773,6 +773,9 @@ bool temporary_network_error(int err)
#endif
#ifdef ECONNABORTED
case(ECONNABORTED):
#endif
#ifdef EADDRNOTAVAIL
case(EADDRNOTAVAIL):
#endif
return true;
}
Expand Down

0 comments on commit 58bfcfc

Please sign in to comment.