From 006bd9e2d36b7dac808eb18641a0252e2832dbfd Mon Sep 17 00:00:00 2001 From: Edoardo Spadolini Date: Wed, 28 Feb 2024 15:09:11 +0100 Subject: [PATCH] Log non-ok-network-error errors from ProxyConn --- lib/resumption/handover.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/resumption/handover.go b/lib/resumption/handover.go index d2de8de7c1342..a60e31eaacff2 100644 --- a/lib/resumption/handover.go +++ b/lib/resumption/handover.go @@ -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) {