encryption

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

eveno
Posts: 5
Joined: 26 Mar 2018, 12:00

encryption

Postby eveno » 26 Mar 2018, 12:04

after activating the cryptography, use encryption, iOS client cant auto reconnect ,occur the following problems, how to solve it.


20:11:09,269 WARN [SocketReader] binary.BinaryIoHandler - java.lang.IllegalStateException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.IllegalStateException
Message: Session does not support encryption: { Id: 5, Type: DEFAULT, Logged: No, IP: 101.246.183.37:57712 }
Sender: { Id: 5, Type: DEFAULT, Logged: No, IP: 101.246.183.37:57712 }
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.protocol.binary.DefaultPacketEncrypter.execute(DefaultPacketEncrypter.java:42)
com.smartfoxserver.v2.protocol.binary.DefaultPacketEncrypter.decrypt(DefaultPacketEncrypter.java:22)
com.smartfoxserver.v2.protocol.binary.BinaryIoHandler.handlePacketData(BinaryIoHandler.java:410)
com.smartfoxserver.v2.protocol.binary.BinaryIoHandler.handleRead(BinaryIoHandler.java:197)
com.smartfoxserver.v2.protocol.SFSIoHandler.onDataRead(SFSIoHandler.java:143)
com.smartfoxserver.bitswarm.core.SocketReader.readTcpData(SocketReader.java:336)
com.smartfoxserver.bitswarm.core.SocketReader.readIncomingSocketData(SocketReader.java:220)
com.smartfoxserver.bitswarm.core.SocketReader.run(SocketReader.java:171)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: encryption

Postby Lapo » 26 Mar 2018, 13:58

Hi,
can you give us more a bit more details?
What SFS2X version are you using?
What API version?

Is this a problem that can be reproduced every time? If so which steps are you using to trigger it?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
eveno
Posts: 5
Joined: 26 Mar 2018, 12:00

Re: encryption

Postby eveno » 26 Mar 2018, 23:30

its all the newest version, disable encryption ,the client can reconnect to the server ,the client can connection retry, but after config SSL certificate,the client cant auto reconnect to the remote server.the encryption config is right , I can connect to server and login ,just cant reconnect automatically,have those exception.
eveno
Posts: 5
Joined: 26 Mar 2018, 12:00

Re: encryption

Postby eveno » 26 Mar 2018, 23:32

I do the back action after IOS screen lock,the client cant reconnect,the server also cant detect the USER_RECONNECTION_TRY event
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: encryption

Postby Lapo » 27 Mar 2018, 11:09

Okay thanks.
We'll run a few tests and see if we can reproduce it.

I'll post an update as soon as possible.
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: encryption

Postby Lapo » 28 Mar 2018, 14:26

Hi,
we have reproduced the issue and we have prepared a fix.
You can download the updated API (version 1.7.4) from this temporary location
In our tests we were able to reconnect with the encrypted connection.

Let us know if it solves the problem.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
eveno
Posts: 5
Joined: 26 Mar 2018, 12:00

Re: encryption

Postby eveno » 30 Mar 2018, 07:08

Thanks.
eveno
Posts: 5
Joined: 26 Mar 2018, 12:00

Re: encryption

Postby eveno » 30 Mar 2018, 07:08

It works.
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: encryption

Postby Lapo » 30 Mar 2018, 07:48

Thanks, we'll publish an official update soon with the fix.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 47 guests