Re: client cannot reconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 25, 2012 at 04:16:03PM +0800, Jules Wang wrote:
>            if (priv->own_thread) {
>             /*
>              * Without this, reconnect (= disconnect + connect)
>              * won't work except by accident.
>              */
>             close(priv->sock);
>             priv->sock = -1;
>             ++(priv->socket_gen);
>         }

I removed the if (priv->own_thread) which does not exists on release-3.3
and made the operation unconditionnal. I also removed ++(priv->socket_gen);
for the same reason.

mount fails with a crash. Before the crash I get this:

[2012-09-25 12:00:07.521199] E [socket.c:1777:socket_event_handler]  0-socket: invalid argument: this->private
[2012-09-25 12:00:07.521237] I [socket.c:1805:socket_event_handler] 0-transport: disconnecting now
[2012-09-25 12:00:07.521265] E [event.c:250:event_unregister_poll] 0-poll: index not found for fd=-1 (idx_hint=3)
[2012-09-25 12:00:07.521298] E [socket.c:1777:socket_event_handler]  0-socket: invalid argument: this->private
[2012-09-25 12:00:07.521325] I [socket.c:1805:socket_event_handler] 0-transport: disconnecting now
[2012-09-25 12:00:07.521353] E [event.c:250:event_unregister_poll] 0-poll: index not found for fd=-1 (idx_hint=5)
[2012-09-25 12:00:07.521388] E [socket.c:1777:socket_event_handler]  0-socket: invalid argument: this->private
[2012-09-25 12:00:07.521415] I [socket.c:1805:socket_event_handler] 0-transport: disconnecting now
[2012-09-25 12:00:07.521442] E [event.c:250:event_unregister_poll] 0-poll: index not found for fd=-1 (idx_hint=3)
[2012-09-25 12:00:07.521474] E [socket.c:1777:socket_event_handler]  0-socket: invalid argument: this->private
(repeated hunderds of time)



-- 
Emmanuel Dreyfus
manu@xxxxxxxxxx



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux