public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* rgmanager: master - rgmanager: Fix timeouts while trying to locate virtual machines
@ 2009-03-12 15:12 Lon Hohberger
  0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-03-12 15:12 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/rgmanager.git?p=rgmanager.git;a=commitdiff;h=1c5c0658b56fd266f46e025d2d6298a6bec7d804
Commit:        1c5c0658b56fd266f46e025d2d6298a6bec7d804
Parent:        6c4fba4922541d94b707ddd0dbcbf44fe14d196d
Author:        Lon Hohberger <lhh@redhat.com>
AuthorDate:    Thu Mar 5 16:33:16 2009 -0500
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Thu Mar 12 11:10:50 2009 -0400

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 a6e0d67..b73a08c 100644
--- a/rgmanager/src/daemons/rg_state.c
+++ b/rgmanager/src/daemons/rg_state.c
@@ -1036,7 +1036,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 */
@@ -1044,8 +1044,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-12 15:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12 15:12 rgmanager: master - 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).