Skip to content

Commit 5a3a9ba

Browse files
committed
fatal error: concurrent map iteration and map write
Signed-off-by: chaunceyjiang <[email protected]>
1 parent 7db53e0 commit 5a3a9ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/cri/streaming/portforward/httpstream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ func (h *httpStreamHandler) getStreamPair(requestID string) (*httpStreamPair, bo
155155
func (h *httpStreamHandler) monitorStreamPair(p *httpStreamPair, timeout <-chan time.Time) {
156156
select {
157157
case <-timeout:
158-
err := fmt.Errorf("(conn=%v, request=%s) timed out waiting for streams", h.conn, p.requestID)
158+
err := fmt.Errorf("(conn=%p, request=%s) timed out waiting for streams", h.conn, p.requestID)
159159
utilruntime.HandleError(err)
160160
p.printError(err.Error())
161161
case <-p.complete:
162-
klog.V(5).Infof("(conn=%v, request=%s) successfully received error and data streams", h.conn, p.requestID)
162+
klog.V(5).Infof("(conn=%p, request=%s) successfully received error and data streams", h.conn, p.requestID)
163163
}
164164
h.removeStreamPair(p.requestID)
165165
}

0 commit comments

Comments
 (0)