When there is no route to host for SSH, re-establish a new connection
This commit is contained in:
parent
43f3764e5b
commit
c22e4fe19b
|
@ -4,6 +4,7 @@ BUG FIXES:
|
||||||
|
|
||||||
- Quote keys to StringBlockEditor so keys with spaces, parens, and
|
- Quote keys to StringBlockEditor so keys with spaces, parens, and
|
||||||
so on work properly.
|
so on work properly.
|
||||||
|
- When there is no route to host for SSH, re-establish a new connection.
|
||||||
|
|
||||||
## 1.1.0 (March 14, 2013)
|
## 1.1.0 (March 14, 2013)
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,9 @@ module VagrantPlugins
|
||||||
# socket.
|
# socket.
|
||||||
begin
|
begin
|
||||||
@connection.exec!("")
|
@connection.exec!("")
|
||||||
|
rescue Errno::EHOSTUNREACH
|
||||||
|
@logger.info("No route to host for connection. Not re-using.")
|
||||||
|
@connection = nil
|
||||||
rescue IOError
|
rescue IOError
|
||||||
@logger.info("Connection has been closed. Not re-using.")
|
@logger.info("Connection has been closed. Not re-using.")
|
||||||
@connection = nil
|
@connection = nil
|
||||||
|
|
Loading…
Reference in New Issue