Skip to content

Commit

Permalink
Log non-ok-network-error errors from ProxyConn
Browse files Browse the repository at this point in the history
  • Loading branch information
espadolini committed Feb 28, 2024
1 parent f434358 commit 006bd9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/resumption/handover.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ func (r *SSHServerWrapper) attemptHandover(conn *multiplexer.Conn, token resumpt
}

r.log.Debug("Forwarding resuming connection to handover socket.")
_ = utils.ProxyConn(context.Background(), conn, handoverConn)
if err := utils.ProxyConn(context.Background(), conn, handoverConn); err != nil && !utils.IsOKNetworkError(err) {
r.log.WithError(err).Debug("Finished forwarding resuming connection to handover socket.")
}
}

func (r *SSHServerWrapper) dialHandover(token resumptionToken) (net.Conn, error) {
Expand Down

0 comments on commit 006bd9e

Please sign in to comment.