From cb539b0b65d1868410a10266edb042bdaf867301 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 20 Aug 2009 18:51:10 +0000 Subject: protocol/client: 'connecting' event is properly notified. when there are no servers available to client, and transport init is not successful, send 'connecting' event once to parent so it doesn't hand in there. Signed-off-by: Anand V. Avati BUG: 224 (Client hangs if none of the servers are up) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=224 --- xlators/protocol/client/src/client-protocol.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/protocol/client/src/client-protocol.h') diff --git a/xlators/protocol/client/src/client-protocol.h b/xlators/protocol/client/src/client-protocol.h index aef58ae30b0..7249853a65a 100644 --- a/xlators/protocol/client/src/client-protocol.h +++ b/xlators/protocol/client/src/client-protocol.h @@ -82,6 +82,7 @@ struct _client_conf { struct timeval last_sent; struct timeval last_received; pthread_mutex_t mutex; + int connecting; }; typedef struct _client_conf client_conf_t; -- cgit