mirror of
https://github.com/containers/podman.git
synced 2026-10-08 19:22:37 -04:00
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:
1 file changed
+1
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user