public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL53 - rgmanager: Fix timeouts while trying to locate virtual machines
@ 2009-03-23 14:50 Lon Hohberger
0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-03-23 14:50 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2e7ffe3afad987f26ea1cbd8f2d9594af5004c3e
Commit: 2e7ffe3afad987f26ea1cbd8f2d9594af5004c3e
Parent: 309670a1a55875cee4d24a31a6dc8d5a5ce2d5d4
Author: Lon Hohberger <lhh@redhat.com>
AuthorDate: Thu Mar 5 16:33:16 2009 -0500
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Thu Mar 5 16:33:16 2009 -0500
rgmanager: Fix timeouts while trying to locate virtual machines
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
rgmanager/src/daemons/rg_state.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/rgmanager/src/daemons/rg_state.c b/rgmanager/src/daemons/rg_state.c
index 98a8000..d0e0da6 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -1048,7 +1048,7 @@ get_new_owner(char *svcName)
continue;
if (msg_open(MSG_CLUSTER, membership->cml_members[x].cn_nodeid,
- RG_PORT, &ctx, 2) < 0) {
+ RG_PORT, &ctx, 10) < 0) {
/* failed to open: better to claim false successful
status rather than claim a failure and possibly
end up with a service on >1 node */
@@ -1056,8 +1056,9 @@ get_new_owner(char *svcName)
}
msg_send(&ctx, &msgp, sizeof(msgp));
- if (msg_receive(&ctx, &response, sizeof (response), 5) != sizeof(response))
- goto cont;;
+ if (msg_receive(&ctx, &response, sizeof (response), 10) !=
+ sizeof(response))
+ goto cont;
swab_SmMessageSt(&response);
if (response.sm_data.d_ret == RG_SUCCESS)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-23 14:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-23 14:50 cluster: RHEL53 - rgmanager: Fix timeouts while trying to locate virtual machines Lon Hohberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).