CONNECTION_RESUME event never fired

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

Moderators: Lapo, Bax

QiXi
Posts: 8
Joined: 06 Feb 2013, 16:46
Location: Russia
Contact:

CONNECTION_RESUME event never fired

Postby QiXi » 22 Oct 2015, 23:36

C++ API
Version 1.6.1
[FIX] CONNECTION_RESUME event never fired.


The same problem on Java API

onSFSConnectionRetry
BitSwarmClient: Reconnection attempt:1 - time left:9
TCPSocketLayer: TCPSocketLayer: Socket error: null
...
TCPSocketLayer: TCPSocketLayer: Calling connect when the socket is not disconnected
...
TCPSocketLayer: TCPSocketLayer: Socket error: null
BitSwarmClient: Reconnection attempt:9 - time left:3
SFSIOHandler: Data written: Binary size: 93
12 00 03 00 01 70 12 00 04 00 02 72 74 08 00 20 .....p.....rt...
63 39 34 39 65 35 66 62 30 61 36 37 36 37 38 30 c949e5fb0a676780
62 36 36 34 34 35 34 65 36 39 61 64 62 35 64 36 b664454e69adb5d6
00 03 62 69 6E 01 01 00 02 63 6C 08 00 07 41 6E ..bin....cl...An
64 72 6F 69 64 00 03 61 70 69 08 00 05 31 2E 36 droid..api...1.6
2E 30 00 01 61 03 00 00 00 01 63 02 00 .0..a.....c..
onSFSConnectionLost reason:[unknown]
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: CONNECTION_RESUME event never fired

Postby Lapo » 23 Oct 2015, 07:58

Hi,
we need more details, to understand the problem.

1) What SFS2X version are you using?
2) What Java API version are using?
3) What is the value of the userReconnectionSeconds in your Zone?
4) How is the reconnection tested?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
QiXi
Posts: 8
Joined: 06 Feb 2013, 16:46
Location: Russia
Contact:

Re: CONNECTION_RESUME event never fired

Postby QiXi » 26 Oct 2015, 00:57

1)SFS server version 2.10.0
2)Client version 1.6
3)User reconnection timeframe =15
4)On\Off AirMode on Nexus 5
After several attempts, receives a data packet, and no call listeners of sfs

Code: Select all

Data written: Binary size: 93
                                                                           12 00 03 00 01 70 12 00 04 00 02 72 74 08 00 20    .....p.....rt...
                                                                           66 39 38 32 61 30 36 32 63 33 61 36 32 31 61 64    f982a062c3a621ad
                                                                           66 64 64 63 65 66 38 64 34 34 39 36 34 33 31 63    fddcef8d4496431c
                                                                           00 03 62 69 6E 01 01 00 02 63 6C 08 00 07 41 6E    ..bin....cl...An
                                                                           64 72 6F 69 64 00 03 61 70 69 08 00 05 31 2E 36    droid..api...1.6
                                                                           2E 30 00 01 61 03 00 00 00 01 63 02 00             .0..a.....c..

After a minute calls
onSFSConnectionLost reason:[unknown]
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: CONNECTION_RESUME event never fired

Postby Lapo » 26 Oct 2015, 07:57

Thanks,
can you explain a little bit better how the test works.

The client is connected then what happens? You turn the airplane mode on?
Please give us the details, otherwise it's going to be pretty difficult to help you.

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
QiXi
Posts: 8
Joined: 06 Feb 2013, 16:46
Location: Russia
Contact:

Re: CONNECTION_RESUME event never fired

Postby QiXi » 27 Oct 2015, 22:12

Вы поймете если я напишу подробно на русском языке? )
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: CONNECTION_RESUME event never fired

Postby Lapo » 28 Oct 2015, 08:20

Can you explain it in English? :)
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 21 guests