mirror of
https://github.com/containerd/containerd.git
synced 2026-08-09 01:21:15 +00:00
Fix port forward error logger to not cause concurrent write
Change the logging output of a struct to only list the pointer value to remove the traversal of a map that is not thread safe and can at times generate a concurrent map write error Signed-off-by: Phil Estes <estesp@amazon.com>
This commit is contained in:
@@ -155,7 +155,7 @@ func (h *httpStreamHandler) getStreamPair(requestID string) (*httpStreamPair, bo
|
||||
func (h *httpStreamHandler) monitorStreamPair(p *httpStreamPair, timeout <-chan time.Time) {
|
||||
select {
|
||||
case <-timeout:
|
||||
err := fmt.Errorf("(conn=%v, request=%s) timed out waiting for streams", h.conn, p.requestID)
|
||||
err := fmt.Errorf("(conn=%p, request=%s) timed out waiting for streams", h.conn, p.requestID)
|
||||
utilruntime.HandleError(err)
|
||||
p.printError(err.Error())
|
||||
case <-p.complete:
|
||||
|
||||
Reference in New Issue
Block a user