From 6e90ebabd5f32233a1c01ee6edd2a2b88bcd38fd Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 20 Aug 2009 18:36:04 +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 86107f9bc9e..210e6d4787d 100644 --- a/xlators/protocol/client/src/client-protocol.h +++ b/xlators/protocol/client/src/client-protocol.h @@ -92,6 +92,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