Pārlūkot izejas kodu

Merge pull request #39761 from tonistiigi/ctx-upload-cancel

builder-next: close build context upload on cancel
Yong Tang 5 gadi atpakaļ
vecāks
revīzija
0c46a20f94
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      builder/builder-next/reqbodyhandler.go

+ 1 - 0
builder/builder-next/reqbodyhandler.go

@@ -35,6 +35,7 @@ func (h *reqBodyHandler) newRequest(rc io.ReadCloser) (string, func()) {
 		h.mu.Lock()
 		h.mu.Lock()
 		delete(h.requests, id)
 		delete(h.requests, id)
 		h.mu.Unlock()
 		h.mu.Unlock()
+		rc.Close()
 	}
 	}
 }
 }