-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
I just noticed that there is some fd leak detection logic here:
sneller/cmd/snellerd/run_worker.go
Lines 71 to 78 in 86e9f11
| vm.Errorf = logger.Printf | |
| start := nfds() | |
| defer func() { | |
| http.DefaultClient.CloseIdleConnections() | |
| end := nfds() | |
| if end > start { | |
| logger.Printf("warning: file descriptor leak: exiting with %d > %d", end, start) | |
| } |
With Go 1.23 this will probably break since it will make use of pidfd on Linux, see https://www.github.com/golang/go/issues/62654.
The fix should be similar to what I submitted to containerd here.
lin72h
Metadata
Metadata
Assignees
Labels
No labels