Connect problem when first enable 3G on iOS device
Posted: 19 Feb 2013, 04:42
Hi,
I have a problem with Unity-iOS client. I have tested on lastest 1.0.7 Unity SFS client, Unity3D 4.0.1, and lastest 2.6 SFS server.
The reproduce case:
- Turn off all network connection from iOS device (iphone 3gs, iphone 5)
- Just enable 3G connection only
- Enter the game and connect to the server
- Exception in the log => BUG 1
[SFS - ERROR] TCPSocketLayer: General error reading data from socket: Read failure at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at Sfs2X.Core.Sockets.TCPSocketLayer.Read () [0x00000] in <filename unknown>:0
- SFS will try BLUEBOX connection
[SFS - DEBUG] [ BB-Connect ]: http://xxx.xxx.xxx.xxx:8080/BlueBox/BlueBox.do
- Server check password using checkSecurePassword method
- Server reject login by invalid password => BUG 2
- > I think the exception in socket causes the session of BLUEBOX become invalid, so there are maybe 2 separated bugs
BUG 1: Can not use socket connection when first enable 3G (after switch to WIFI and back to 3G the connection is fine)
BUG 2: The socket exception cause BLUEBOX connection failed on password verifying. (When I force BLUEBOX connection by entering invalid socket port, the login is OK - that mean the password is right)
Thanks,
I have a problem with Unity-iOS client. I have tested on lastest 1.0.7 Unity SFS client, Unity3D 4.0.1, and lastest 2.6 SFS server.
The reproduce case:
- Turn off all network connection from iOS device (iphone 3gs, iphone 5)
- Just enable 3G connection only
- Enter the game and connect to the server
- Exception in the log => BUG 1
[SFS - ERROR] TCPSocketLayer: General error reading data from socket: Read failure at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at Sfs2X.Core.Sockets.TCPSocketLayer.Read () [0x00000] in <filename unknown>:0
- SFS will try BLUEBOX connection
[SFS - DEBUG] [ BB-Connect ]: http://xxx.xxx.xxx.xxx:8080/BlueBox/BlueBox.do
- Server check password using checkSecurePassword method
- Server reject login by invalid password => BUG 2
- > I think the exception in socket causes the session of BLUEBOX become invalid, so there are maybe 2 separated bugs
BUG 1: Can not use socket connection when first enable 3G (after switch to WIFI and back to 3G the connection is fine)
BUG 2: The socket exception cause BLUEBOX connection failed on password verifying. (When I force BLUEBOX connection by entering invalid socket port, the login is OK - that mean the password is right)
Thanks,