mirror of
https://github.com/moby/moby.git
synced 2026-08-05 07:30:57 +00:00
In cases where the client disconnects and there is nothing to read from a stdio stream after that disconnect, the copy goroutines and file descriptors are leaked because `io.Copy` is just blocked waiting for data from the container's I/O stream. This fix only applies to Linux. Windows will need a separate fix. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
11 lines
140 B
Go
11 lines
140 B
Go
//go:build !linux
|
|
|
|
package container
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
)
|
|
|
|
func notifyClosed(ctx context.Context, conn net.Conn, notify func()) {}
|