Fix Firecracker PID resolution and deprecated net.Error.Temporary
Use context.Background() for resolveFirecrackerPID so a cancelled request context (client disconnect) doesn't prevent tracking the spawned Firecracker process, leaving it orphaned on cleanup. Drop ne.Temporary() check in accept loop; deprecated since Go 1.18 and unreliable. Retry on any net.Error instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0e764b0571
commit
09590cbaa0
2 changed files with 6 additions and 3 deletions
|
|
@ -168,7 +168,7 @@ func (d *Daemon) Serve(ctx context.Context) error {
|
|||
return nil
|
||||
default:
|
||||
}
|
||||
if ne, ok := err.(net.Error); ok && ne.Temporary() {
|
||||
if _, ok := err.(net.Error); ok {
|
||||
if d.logger != nil {
|
||||
d.logger.Warn("daemon accept temporary failure", "error", err.Error())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue