CONNECT_LOST on the version of Android 2.1

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

lwnovo_lu
Posts: 16
Joined: 18 May 2011, 01:44

CONNECT_LOST on the version of Android 2.1

Postby lwnovo_lu » 21 Jun 2011, 07:39

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
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 25 Jun 2011, 11:39

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
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
lwnovo_lu
Posts: 16
Joined: 18 May 2011, 01:44

Postby lwnovo_lu » 30 Jun 2011, 00:25

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?
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 30 Jun 2011, 19:35

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
Full Control - maker of Unity/C# and Java SFS API and indie games

Follow on twitter: http://twitter.com/thomas_h_lund
lwnovo_lu
Posts: 16
Joined: 18 May 2011, 01:44

Postby lwnovo_lu » 01 Jul 2011, 02:14

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!
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 01 Jul 2011, 07:27

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
Full Control - maker of Unity/C# and Java SFS API and indie games

Follow on twitter: http://twitter.com/thomas_h_lund
lwnovo_lu
Posts: 16
Joined: 18 May 2011, 01:44

Postby lwnovo_lu » 04 Jul 2011, 01:33

ThomasLund wrote: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


ok, thanks any way

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 11 guests