Merge pull request #29324 from sudo-muneeb/fix-conmon-context-leak

libpod: propagate request context in HTTPAttach to prevent leak
This commit is contained in:
Matt Heon authored and GitHub committed 2026-08-05 05:48:20 -04:00
commit 7b5ea1a367
1 file changed
+1 -2
+1 -2
View File
@@ -5,7 +5,6 @@ package libpod
import (
"bufio"
"bytes"
"context"
"errors"
"fmt"
"io"
@@ -596,7 +595,7 @@ func (r *ConmonOCIRuntime) HTTPAttach(ctr *Container, req *http.Request, w http.
}
errChan <- err
}()
if err := ctr.ReadLog(context.Background(), logOpts, logChan, 0); err != nil {
if err := ctr.ReadLog(req.Context(), logOpts, logChan, 0); err != nil {
return err
}
go func() {