mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00

There is a network stability issue in qemu + virtio, affecting some users after long periods of usage, which can lead to suspended queue delivery. Until the issue is resolved, add a temporary recovery service which restarts networking when host communication becomes inoperable. [NO NEW TESTS NEEDED] Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
18 lines
211 B
Go
18 lines
211 B
Go
package qemu
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func getRuntimeDir() (string, error) {
|
|
tmpDir, ok := os.LookupEnv("TMPDIR")
|
|
if !ok {
|
|
tmpDir = "/tmp"
|
|
}
|
|
return tmpDir, nil
|
|
}
|
|
|
|
func useNetworkRecover() bool {
|
|
return false
|
|
}
|