Hi EQ!
We have the last version running and it seems that the new error handling works fine!
I'm checking the logs and now when we get Packet Write errors (System.IO.IOException), the thread is killed. But I can't see if it does the same when we get System.Net.Sockets.SocketException.
Some extracts of the log files for you to see
Thread aborting for System.IO.IOException:
09.10.13 11:55:32 #1 Packet write error...
09.10.13 11:55:32 #1 AEGIO ERROR : System.IO.IOException
Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at LiveForSpeed.InSim.Aegio.Connection.PacketWrite(Byte[] pack) in c:\Development Files\LFS_Airio2\Aegio\InSimConnection.cs:line 287
09.10.13 11:55:32 #1 AEGIO ERROR : Packet not written
4 3 0 0
09.10.13 11:55:32 #1 Reconnect attempt : 1
09.10.13 11:55:33 #1 Packet write error...
09.10.13 11:55:33 #1 AEGIO ERROR : System.IO.IOException
Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at LiveForSpeed.InSim.Aegio.Connection.PacketWrite(Byte[] pack) in c:\Development Files\LFS_Airio2\Aegio\InSimConnection.cs:line 287
09.10.13 11:55:33 #1 AEGIO ERROR : Packet not written
4 3 0 0
09.10.13 11:55:33 #1 AEGIO ERROR : System.Threading.ThreadAbortException
Thread was being aborted.
at System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout)
at LiveForSpeed.InSim.Aegio.Connection.ListenTCP() in c:\Development Files\LFS_Airio2\Aegio\InSimListener.cs:line 14
09.10.13 11:55:33 #1 Disconnected from : MecaHost LFSSpain #1
09.10.13 11:55:33 #1 Closed connection...
09.10.13 11:56:04 #1 Nulling instance...
No clues about thread handling on System.Net.Sockets.SocketException
09.10.14 03:09:04 #1 AEGIO ERROR : System.Net.Sockets.SocketException
No connection could be made because the target machine actively refused it 82.159.210.39:29988
at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port)
at LiveForSpeed.InSim.Aegio.Connection.ConnectionOpen(String hostName, Int32 hostPort, String adminPass, String insimName, Char prefixChar, Boolean hostLocal, Boolean keepColours, Boolean sendNodeLap, Boolean sendMultiCar, UInt16 updateInterval, UInt16 udpPort) in c:\Development Files\LFS_Airio2\Aegio\InSimConnection.cs:line 99
09.10.14 03:09:04 #2 Starting new instance...
09.10.14 03:09:04 #2 Reading server configuration...
09.10.14 03:09:04 #2 Opening connection to 82.159.210.39:29989
09.10.14 03:09:05 #2 Retrying connection...
09.10.14 03:09:06 Received LFSW WR data...
09.10.14 03:09:07 #2 Retrying connection...
09.10.14 03:09:09 #2 Connection failed...
09.10.14 03:09:09 #2 AEGIO ERROR : System.Net.Sockets.SocketException
No connection could be made because the target machine actively refused it 82.159.210.39:29989
at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port)
at LiveForSpeed.InSim.Aegio.Connection.ConnectionOpen(String hostName, Int32 hostPort, String adminPass, String insimName, Char prefixChar, Boolean hostLocal, Boolean keepColours, Boolean sendNodeLap, Boolean sendMultiCar, UInt16 updateInterval, UInt16 udpPort) in c:\Development Files\LFS_Airio2\Aegio\InSimConnection.cs:line 99
09.10.14 03:09:09 Entering main loop...
09.10.14 03:10:09 #1 Nulling instance...
09.10.14 03:10:09 #2 Nulling instance...
09.10.14 03:13:09 Writing Lapper PB data...
09.10.14 03:14:09 #1 Restarting instance...