connection lost every 40 sec

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

joha
Posts: 8
Joined: 22 May 2013, 04:56

connection lost every 40 sec

Postby joha » 19 Jun 2013, 21:41

Hi guys
After login into a zone, my client is receiving a connection lost every 40 sec and the reason says unknown.

2013-06-19 15:07:48.584 ChinesePoker[18931:907] [SFS - WARN]Exception onDataRead!!!
2013-06-19 15:07:48.585 ChinesePoker[18931:907] -[GameCenterChannel onConnectionLost:] Connection was lost, Reason: unknown
2013-06-19 15:07:48.587 ChinesePoker[18931:907] -[GameCenterChannel sendConnectionError]
2013-06-19 15:07:48.589 ChinesePoker[18931:907] -[GameCenterChannel connectToSmartFoxServer]
2013-06-19 15:07:48.604 ChinesePoker[18931:907] -[GameCenterChannel onConnection:] connected to smartfox server...
2013-06-19 15:08:28.625 ChinesePoker[18931:907] [SFS - WARN]Exception onDataRead!!!
2013-06-19 15:08:28.628 ChinesePoker[18931:907] -[GameCenterChannel onConnectionLost:] Connection was lost, Reason: unknown
2013-06-19 15:08:28.629 ChinesePoker[18931:907] -[GameCenterChannel sendConnectionError]
2013-06-19 15:08:28.631 ChinesePoker[18931:907] -[GameCenterChannel connectToSmartFoxServer]
2013-06-19 15:08:28.648 ChinesePoker[18931:907] -[GameCenterChannel onConnection:] connected to smartfox server...
2013-06-19 15:09:08.691 ChinesePoker[18931:907] [SFS - WARN]Exception onDataRead!!!
2013-06-19 15:09:08.693 ChinesePoker[18931:907] -[GameCenterChannel onConnectionLost:] Connection was lost, Reason: unknown
2013-06-19 15:09:08.693 ChinesePoker[18931:907] -[GameCenterChannel sendConnectionError]
2013-06-19 15:09:08.695 ChinesePoker[18931:907] -[GameCenterChannel connectToSmartFoxServer]

Could you help me with this issue?
Thanks!
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: connection lost every 40 sec

Postby Lapo » 20 Jun 2013, 09:14

Are you using the latest API?
Is this happening locally or on a live server?
thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
joha
Posts: 8
Joined: 22 May 2013, 04:56

Re: connection lost every 40 sec

Postby joha » 20 Jun 2013, 15:02

Latest iOS build, latest server build. Logs copied are from IOS app.
In the server side it says unknow error too.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: connection lost every 40 sec

Postby Lapo » 20 Jun 2013, 17:18

It happens locally or on a live server?
Is it always 40 seconds, consistent every time?
Can you show the server side logs relevant to the disconnection?
Lapo

--

gotoAndPlay()

...addicted to flash games
scofy
Posts: 79
Joined: 08 Apr 2012, 09:04

Re: connection lost every 40 sec

Postby scofy » 27 Jun 2013, 11:32

Maybe you encount the problem same with me,jump to the post:http://www.smartfoxserver.com/forums/viewtopic.php?f=21&t=15962&hilit=onDataRead#p68194

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 58 guests