[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gluster-devel] client cannot reconnect
From: |
Emmanuel Dreyfus |
Subject: |
Re: [Gluster-devel] client cannot reconnect |
Date: |
Sun, 30 Sep 2012 09:50:51 +0200 |
User-agent: |
MacSOUP/2.7 (unregistered for 2080 days) |
Emmanuel Dreyfus <address@hidden> wrote:
> socket_event_handler() is called with a this = 0xbb70ec00 that already
> went through fini(). There is a wrong refcount somewhere.
With this fix, I can mount again. Please comment: is that correct?
--- rpc/rpc-transport/socket/src/socket.c.orig
+++ rpc/rpc-transport/socket/src/socket.c
@@ -278,8 +278,17 @@
gf_log (this->name, GF_LOG_DEBUG,
"shutdown() returned %d. %s",
ret, strerror (errno));
}
+
+ /*
+ * Without this, reconnect (= disconnect + connect)
+ * won't work except by accident.
+ */
+ event_unregister (this->ctx->event_pool,
+ priv->sock, priv->idx);
+ close (priv->sock);
+ priv->sock = -1;
}
out:
return ret;
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
address@hidden
- Re: [Gluster-devel] client cannot reconnect, (continued)
- Re: [Gluster-devel] client cannot reconnect, Emmanuel Dreyfus, 2012/09/23
- Re: [Gluster-devel] client cannot reconnect, Emmanuel Dreyfus, 2012/09/25
- Re: [Gluster-devel] client cannot reconnect, Jules Wang, 2012/09/25
- Re: [Gluster-devel] client cannot reconnect, Emmanuel Dreyfus, 2012/09/25
- Re: [Gluster-devel] client cannot reconnect, Emmanuel Dreyfus, 2012/09/25
- Re: [Gluster-devel] client cannot reconnect, Jules Wang, 2012/09/25
- Re: [Gluster-devel] client cannot reconnect, Emmanuel Dreyfus, 2012/09/25
- Re: [Gluster-devel] client cannot reconnect, Emmanuel Dreyfus, 2012/09/30
- Re: [Gluster-devel] client cannot reconnect,
Emmanuel Dreyfus <=