Page 1 of 1

CONNECTION_RESUME event never fired

Posted: 22 Oct 2015, 23:36
by QiXi
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]

Re: CONNECTION_RESUME event never fired

Posted: 23 Oct 2015, 07:58
by Lapo
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

Re: CONNECTION_RESUME event never fired

Posted: 26 Oct 2015, 00:57
by QiXi
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]

Re: CONNECTION_RESUME event never fired

Posted: 26 Oct 2015, 07:57
by Lapo
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

Re: CONNECTION_RESUME event never fired

Posted: 27 Oct 2015, 22:12
by QiXi
Вы поймете если я напишу подробно на русском языке? )

Re: CONNECTION_RESUME event never fired

Posted: 28 Oct 2015, 08:20
by Lapo
Can you explain it in English? :)