You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
klog.ErrorS(fmt.Errorf("timeout"), "readTimeout has been reached, the grpc connection to the proxy server will be closed", "connectionID", conn.connID, "readTimeoutSeconds", t.readTimeoutSeconds)
291
-
return
292
-
case<-tunnelCtx.Done():
293
-
klog.V(1).InfoS("Tunnel has been closed, the grpc connection to the proxy server will be closed", "connectionID", conn.connID)
294
-
}
295
-
} else {
296
-
klog.V(1).InfoS("connection not recognized", "connectionID", resp.ConnectID)
284
+
if!ok {
285
+
klog.V(1).InfoS("Connection not recognized", "connectionID", resp.ConnectID)
klog.ErrorS(fmt.Errorf("timeout"), "readTimeout has been reached, the grpc connection to the proxy server will be closed", "connectionID", conn.connID, "readTimeoutSeconds", t.readTimeoutSeconds)
294
+
return
295
+
case<-tunnelCtx.Done():
296
+
klog.V(1).InfoS("Tunnel has been closed, the grpc connection to the proxy server will be closed", "connectionID", conn.connID)
297
297
}
298
298
299
299
caseclient.PacketType_CLOSE_RSP:
300
300
resp:=pkt.GetCloseResponse()
301
301
conn, ok:=t.conns.get(resp.ConnectID)
302
302
303
-
ifok {
304
-
close(conn.readCh)
305
-
conn.closeCh<-resp.Error
306
-
close(conn.closeCh)
307
-
t.conns.remove(resp.ConnectID)
308
-
return
303
+
if!ok {
304
+
klog.V(1).InfoS("Connection not recognized", "connectionID", resp.ConnectID)
305
+
continue
309
306
}
310
-
klog.V(1).InfoS("connection not recognized", "connectionID", resp.ConnectID)
0 commit comments