mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
rpc: wait longer for session daemon to start up
https://bugzilla.redhat.com/show_bug.cgi?id=1271183 We only wait 0.5 seconds for the session daemon to start up and present its socket, which isn't sufficient for many users. Bump up the sleep interval and retry amount so we wait for a total of 5.0 seconds.
This commit is contained in:
parent
e6367dd408
commit
ca0c06f400
@ -614,7 +614,7 @@ int virNetSocketNewConnectUNIX(const char *path,
|
|||||||
char *lockpath = NULL;
|
char *lockpath = NULL;
|
||||||
int lockfd = -1;
|
int lockfd = -1;
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
int retries = 100;
|
int retries = 500;
|
||||||
virSocketAddr localAddr;
|
virSocketAddr localAddr;
|
||||||
virSocketAddr remoteAddr;
|
virSocketAddr remoteAddr;
|
||||||
char *rundir = NULL;
|
char *rundir = NULL;
|
||||||
@ -707,7 +707,7 @@ int virNetSocketNewConnectUNIX(const char *path,
|
|||||||
daemonLaunched = true;
|
daemonLaunched = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
usleep(5000);
|
usleep(10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
localAddr.len = sizeof(localAddr.data);
|
localAddr.len = sizeof(localAddr.data);
|
||||||
|
Loading…
Reference in New Issue
Block a user