$XAPI handles EHOSTUNREACH errors.

This commit is contained in:
Julien Fontanet 2013-12-27 11:49:45 +01:00
parent a3a87f54df
commit 280b3275b4

View File

@ -69,6 +69,7 @@ class $XAPI
# least once to know who is the new pool master. # least once to know who is the new pool master.
when 'ECONNRESET', \ when 'ECONNRESET', \
'ECONNREFUSED', \ 'ECONNREFUSED', \
'EHOSTUNREACH', \
'HOST_STILL_BOOTING', \ 'HOST_STILL_BOOTING', \
'HOST_HAS_NO_MANAGEMENT_IP' 'HOST_HAS_NO_MANAGEMENT_IP'
# Node.js seems to reuse the broken socket, so we add a small # Node.js seems to reuse the broken socket, so we add a small