[JDEV] jabberd patch

Richard Dobson richard at dobson-i.net
Tue Feb 25 17:47:08 CST 2003


Exactly but the thing is that they dont get a stream error, at the 
moment the server ends the session with a </stream:stream> and drops 
the socket, and because that sequence of events means the server is 
terminating the connection, which i think will only happen at the 
moment because of another session connecting, that can be used for 
clients to determine wether they should try auto-reconnecting, because 
IMO clients should only be auto-reconnecting in the case of a network 
problem terminating their connection and in that case they would not 
have received the </stream:stream> from the server so that is why you 
can use that to determine wether to auto-reconnect.

On Tuesday, February 25, 2003, at 09:12  pm, David Waite wrote:

> IMHO, this is a bug in those clients. If the server says it is 
> disconnecting you (via a stream:error), you should not immediately 
> reconnect.
>
> -David Waite
>
> Tijl Houtbeckers wrote:
>
>> "Richard Dobson" <richard at dobson-i.net> wrote on 25-2-2003 13:31:12:
>>
>>> Yea sure I wasnt arguing against the "option", but it shouldnt be 
>>> standard behaviour and must be documented that it can cause 
>>> issues/problems, so the admin can make an informed choice of which 
>>> behaviour they want.
>>>
>>
>> Then again, not using this patch has it's own problems when two 
>> clients with auto-reconnect start to "fight" over the same 
>> connection. So this patch is definatly usefull for those who want to 
>> avoid this type of behaviour.
>>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev





More information about the JDev mailing list