Remote connection failure should not effect host connection (Returning error will trigger the termination of the host connection)
This commit is contained in:
@@ -524,8 +524,10 @@ func (d *sshClient) local(
|
|||||||
_, wErr := remote.writer.Write(rData)
|
_, wErr := remote.writer.Write(rData)
|
||||||
|
|
||||||
if wErr != nil {
|
if wErr != nil {
|
||||||
return wErr
|
d.l.Debug("Failed to write data to remote: %s", wErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
@@ -180,8 +180,10 @@ func (d *telnetClient) client(
|
|||||||
_, wErr := remoteConn.Write(rBuf)
|
_, wErr := remoteConn.Write(rBuf)
|
||||||
|
|
||||||
if wErr != nil {
|
if wErr != nil {
|
||||||
return wErr
|
d.l.Debug("Failed to write data to remote: %s", wErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user