On Fri, 2006-04-21 at 13:32 -0400, Youness Alaoui wrote:
> that is great! but...
> you say 3 times in a row no answer, then reconnect...
> but from the code, it looks like you're doing :
> if you have auto-reconnect enabled : reconnect if no answer after 2 in a  
> row...
ok it is 0
Send first PNG
i check, it is not > 1 (but 0)
incr
send 2nd PNG
i check, it is not > 1 (but 1)
incr
send 3th PNG
i check, it is  > 1

so yes you are right, but it is easy to see how i told the wrong
number :P



> if you don't have auto-reconnect : logout if no answer for 10 PNGs in a  
> row...
> where is the '3 times in a row' :D
> anyways, that's not important, but I think the > 1 should become >= 3 (to  
> avoid confusion, as > 1 means at least 2, but I didn't realize it was >  
> not >= ... )
ok, no problem with me

> also, 10 PNG if not reconnect.. I say it's a bit too much, no ? if we  
> don't get one answer, we already know we're offfline.. 2 is good, 3 is a  
> bit much... but 10 is way too much I think.. it represents 11 minutes!
well.. i figured if you don't have auto-reconnect turned on.. we can
wait a bit longer.. if someone is offline for a couple of minutes
(connection is down) and he isn't chatting (if he is chatting then he
will know right away) it doesn't hurt to wait a bit longer.. because as
long as noone in his list changes status or tries to chat with him he
will continue his session.. but once we disconnect his session is lost,
since he doesn't have autoreconnect

> Also, I say we keep it 3 because it happened to me a lot of times when I  
> loose my connection, then I reconnect, and the socket stays open... (ouhh  
> yeah, no internet, PNGs without answr for 5 minutes or so.. then connect  
> to internet, and there, one more PNG and I get the answer for it! :D) but  
> we shouldn't be counting too much on that...
> also, I remember we had a discussion (don't remember the outcome though)  
> where we said for the detection of the disconnection, it would be best to  
> FORCE enabling the keepalive option.. anyways, it's safer, it's easier for  
> us, it doesn't take too much bandwidth... and who cares about those who  
> don't want it? they won't even know it's there!!! hehe
> so do you think we should enable keepalive and have no way to disable it ?
Yeah i think so, it is the only way we know for sure we are still
connected :P




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel

Reply via email to