Skip to content

Commit 2119003

Browse files
author
Chao Xu
committed
return early if backend is broken
1 parent c967cb0 commit 2119003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/agent/agentserver/tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (t *Tunnel) ServeHTTP(w http.ResponseWriter, r *http.Request) {
130130
err = backend.Send(packet)
131131
if err != nil {
132132
klog.Errorf("error sending packet %v", err)
133-
continue
133+
break
134134
}
135135
klog.Infof("Forwarding %d (total %d) bytes of DATA on tunnel for agentID %s, connID %d", n, acc, connection.agentID, connection.connectID)
136136
}

0 commit comments

Comments
 (0)