Shut down on link error

Because it doesn't seem to recover until the tunnel dies.
This commit is contained in:
Davide De Rosa 2019-03-08 13:08:30 +01:00
parent 56ffe1e397
commit e3b8a6b16b
1 changed files with 3 additions and 3 deletions

View File

@ -979,7 +979,7 @@ public class SessionProxy {
if let error = error {
self?.queue.sync {
log.error("Failed LINK write during control flush: \(error)")
self?.deferStop(.reconnect, SessionError.failedLinkWrite)
self?.deferStop(.shutdown, SessionError.failedLinkWrite)
return
}
}
@ -1097,7 +1097,7 @@ public class SessionProxy {
if let error = error {
self?.queue.sync {
log.error("Data: Failed LINK write during send data: \(error)")
self?.deferStop(.reconnect, SessionError.failedLinkWrite)
self?.deferStop(.shutdown, SessionError.failedLinkWrite)
return
}
}
@ -1143,7 +1143,7 @@ public class SessionProxy {
if let error = error {
self?.queue.sync {
log.error("Failed LINK write during send ack for packetId \(controlPacket.packetId): \(error)")
self?.deferStop(.reconnect, SessionError.failedLinkWrite)
self?.deferStop(.shutdown, SessionError.failedLinkWrite)
return
}
}