Exceptions on logout

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

andisopany
Posts: 33
Joined: 19 Sep 2015, 01:15

Exceptions on logout

Postby andisopany » 16 Nov 2018, 02:41

Hi,

I'm constantly getting the following exception when trying to gracefully close the client connection.


Code: Select all

[SFS - ERROR] [TCPSocketLayer] General error reading data from socket: Unable to read data from the transport connection: interrupted.   at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 size) [0x000e2] in <81ba78c8dc794b7f9f7b530c53db0f84>:0
  at Sfs2X.Core.Sockets.TCPSocketLayer.Read () [0x0002a] in <d1e9f5f2e2014d659f8959e0880e0917>:0
[


Am I doing things out of order? I'm sending a logout request then waiting for the callback to close the connection.

Thanks
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exceptions on logout

Postby Lapo » 16 Nov 2018, 08:30

Hi,
this is perfectly normal and won't affect your application.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
DrPsyche
Posts: 8
Joined: 09 Jan 2019, 11:47

Re: Exceptions on logout

Postby DrPsyche » 28 Jan 2019, 07:12

Hi,

Could it be the SecurityProtocol issue? Or perhaps the firewall blocking the port? Which is unlikely I guess. How to get rid of this issue?

Thanks.
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exceptions on logout

Postby Lapo » 28 Jan 2019, 07:44

Hi,
if you're referring to the same exception, it's not an issue at all. When the connection gets closed the Thread reading from the socket can throw and exception which gets logged as every other exception. This doesn't affect your application in any way.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 33 guests