[Spread-users] REJECT_NOT_UNIQUE

Jonathan Stanton jonathan at spreadconcepts.com
Fri Dec 7 15:40:15 EST 2012


When you stop a client normally, the Spread daemon gets notified that the client is disconnecting, so it removes it from it's set of active clients. Then when the client restarts it is allowed to connect.

However if you power cycle the machine, it cuts off the packets between the client process and server before the client can notify the server that it is leaving, so  it looks to the server as if nothing has happened to the client (no packets arrive from the client -- but none are expected unless the client is trying to act) so it thinks that client is still connected (and if you look at the server state, the tcp connection to the client will still be in an established state. (Note, I expect if you do a 'shutdown' of the client machine using the OS it will not have this problem as in that case the client process is killed and the tcp connection to the server is closed correctly by the OS, that is different then if you power cycle the server using the power button in which case the clean shutdown doesn't happen)

Now if the server tries to send a message to the client, it will get a tcp error and then will know to remove the client state and then can accept a new connection from that client. To get better detection of these 'idle disconnected' clients you can also turn on 'keep alives' in the newer versions of Spread. That will close the connection if probes that are sent every so many seconds are not responded to. 

Cheers,

Jonathan

-------------------------------------------------------------------------------
Jonathan Stanton		jonathan at spreadconcepts.com
Spread Group Messaging	www.spread.org
Spread Concepts LLC 	www.spreadconcepts.com
-------------------------------------------------------------------------------



On Dec 7, 2012, at 11:28 AM, Lu Liu wrote:

> Hi,
> 
> I am using spread 4.0.1. If I stop a client normally and restart the 
> client it connects to the server correctly.
> But If I power cycled the client machine I got the error 
> "REJECT_NOT_UNIQUE". Any idea?
> 
> Thanks,
> 
> Lu
> 
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users




More information about the Spread-users mailing list