[Spread-users] Non-unique private name
Ryan Caudy
rcaudy at gmail.com
Wed Dec 15 19:10:07 EST 2004
Are you sure Spread is getting your disconnect, and processing it?
Please add GROUPS and SESSION trace, and let me know what you see.
When Spread gets a disconnect message from a client, it sends it via
and AGREED message. When it processes the AGREED message after
receiving it, the name should be reusable.
Cheers,
Ryan
On Tue, 14 Dec 2004 23:31:22 -0800 (PST), Yuval Lifshitz
<yuvalif at yahoo.com> wrote:
> I wrote a spread client, and I have a problem to reconnect after a crash.
> The first thing I tried is to kill the client (in an ugly Ctr-C) and than
> rerun it. I got the following spread log:
> ...
> Set Alarm mask to: 186
> [09:04:49] Setting SO_REUSEADDR to always off
> [09:04:49] Set runtime directory to '/var/run/spread'
> [09:04:49] Set user name to 'root'
> [09:04:49] Set group name to 'root'
> [09:04:49] Finished configuration file.
> [09:04:49] Conf_init: My name: nautilus, id: 10.10.0.153, port: 4803
> [09:04:49] Sess_init: INET bind for port 4803 interface 0.0.0.0 ok
> [09:04:49] Sess_init: INET went ok on mailbox 6
> [09:04:49] Sess_init: UNIX bind for name /tmp/4803 ok
> [09:04:49] Sess_init: UNIX went ok on mailbox 7
> [09:04:49] Sess_init: ended ok
> [09:04:53] Sess_accept: set sndbuf/rcvbuf to 204800
> [09:04:53] Sess_recv_client_auth: Client requested NULL type authentication
> [09:04:53] Sess_session_authorized: Accepting from 0.0.0.0 with private name
> MyName on mailbox 9
> [09:04:58] Sess_read: failed receiving header on session 9: ret 0: error:
> Inappropriate ioctl for device
> [09:04:58] Sess_kill: killing session MyName ( mailbox 9 )
> [09:05:01] Sess_accept: set sndbuf/rcvbuf to 204800
> [09:05:01] Sess_accept_continue: non unique private name MyName on mailbox 9
> [09:05:03] Sess_accept: set sndbuf/rcvbuf to 204800
> [09:05:03] Sess_accept_continue: non unique private name MyName on mailbox 9
> [09:05:05] Sess_accept: set sndbuf/rcvbuf to 204800
> [09:05:05] Sess_accept_continue: non unique private name MyName on mailbox 9
> ...
> Than I tried a more polite way, I disconnect on Ctr-C, exit, and rerun the
> client:
> ...
> [09:16:10] Setting SO_REUSEADDR to always off
> [09:16:10] Set runtime directory to '/var/run/spread'
> [09:16:10] Set user name to 'root'
> [09:16:10] Set group name to 'root'
> [09:16:10] Finished configuration file.
> [09:16:10] Conf_init: My name: nautilus, id: 10.10.0.153, port: 4803
> [09:16:10] Sess_init: INET bind for port 4803 interface 0.0.0.0 ok
> [09:16:10] Sess_init: INET went ok on mailbox 6
> [09:16:10] Sess_init: UNIX bind for name /tmp/4803 ok
> [09:16:10] Sess_init: UNIX went ok on mailbox 7
> [09:16:10] Sess_init: ended ok
> [09:16:15] Sess_accept: set sndbuf/rcvbuf to 204800
> [09:16:15] Sess_recv_client_auth: Client requested NULL type authentication
> [09:16:15] Sess_session_authorized: Accepting from 0.0.0.0 with private name
> MyName on mailbox 9
> [09:16:25] Sess_read: Message has type field 0x80040080
> [09:16:25] Sess_read: disconnecting session MyName ( mailbox 9 )
> [09:16:25] Sess_read: queueing message of type 8 with len 0 to the protocol
> [09:16:29] Sess_accept: set sndbuf/rcvbuf to 204800
> [09:16:29] Sess_accept_continue: non unique private name MyName on mailbox 9
> [09:16:31] Sess_accept: set sndbuf/rcvbuf to 204800
> [09:16:31] Sess_accept_continue: non unique private name MyName on mailbox 9
> ...
> I see that spread got my "disconnect", but again "MyName" is not released.
>
> What am I doing wrong?
>
> I must say that it does succeed from time to time. I also played with the
> "reuse address" parameter, but I had success/fail both on: ON/OFF.
>
> Yuval.
>
> ________________________________
> Do you Yahoo!?
> Yahoo! Mail - Find what you need with new enhanced search. Learn more.
>
>
More information about the Spread-users
mailing list