We have run our app well on Android 2.2+ well ,Thanks our friend--ThomasLund
But when we tried to run the app on Android 2.1, it failed. The LogCat INFO said WARN sfs2x.client.SmartFox - A connection attempt is already running.
We checked the client code , it was first time trying to send connection request to server. And Server logs told that it succeeded in "hankshake ",however the session closed after a few seconds.
Is there anyone can tell us what happened ? Thanks !
ps: the SFS client version we use is a beta version from ThomasLund
CONNECT_LOST on the version of Android 2.1
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Found a bug where CONNECTION_LOST was never triggered in the API. Fixed in upcoming release
Dont know though why the connection closes on you - can you paste the log?
/Thomas
Dont know though why the connection closes on you - can you paste the log?
/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund
ThomasLund wrote:Found a bug where CONNECTION_LOST was never triggered in the API. Fixed in upcoming release
Dont know though why the connection closes on you - can you paste the log?
/Thomas
The Android Log said WARN sfs2x.client.SmartFox - A connection attempt is already running.
I found another point surprised me . I logged in server with the name "sum" by Android A,then i logged in server with the same name "sum" by Android B. Of course ,A disconnected . But when i tried to log in again with the same name by A, it did. By the Zone monitor ,there were two "sum" in the same zone[i] .
Why?
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
The server holds a connection per IP. When someone goes away the server afaik holds a connection for a little while before cleaning it away
/T
/T
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund
ThomasLund wrote:The server holds a connection per IP. When someone goes away the server afaik holds a connection for a little while before cleaning it away
/T
For a while ? NO! Have you ever tested the situation ?
1 hour passed ,and there was no change! It's a big bug!
The version RC3 says that it can force login!!! Sorry, it disappointed me!
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Sorry you are disappointed. For server related questions and comments please post in the main forum. The server guys are there more than here (java api).
/Thomas
/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund
Return to “SFS2X Java / Android API”
Who is online
Users browsing this forum: No registered users and 60 guests