- Code: Select all
2013-09-15 22:51:32,971 - [Threadpool worker] - ERROR - DOL.GS.PacketHandler.PacketProcessor - Packet processor: SocketException System.Net.Sockets.SocketException: The socket has been shut down at System.Net.Sockets.Socket.EndSend (IAsyncResult result) [0x00000] in <filename unknown>:0 at DOL.GS.PacketHandler.PacketProcessor.AsyncTcpSendCallback (IAsyncResult ar) [0x00000] in <filename unknown>:0 2013-09-15 22:51:32,971 - [Threadpool worker] - DEBUG - DOL.GS.GameClient - Linkdeath called (bogha69) client state=Playing 2013-09-15 22:51:32,971 - [Threadpool worker] - INFO - DOL.GS.GamePlayer - Player Clerccs(bogha69) went linkdead! 2013-09-15 22:51:32,971 - [Threadpool worker] - FATAL - DOL.GS.GameServer - Unhandled exception! System.Net.Sockets.SocketException: The socket is not connected at System.Net.Sockets.Socket.get_RemoteEndPoint () [0x00000] in <filename unknown>:0 at DOL.Network.BaseClient.get_TcpEndpoint () [0x00000] in <filename unknown>:0 at DOL.Network.BaseClient.OnReceiveHandler (IAsyncResult ar) [0x00000] in <filename unknown>:0
- Code: Select all
catch (SocketException e) { if (baseClient != null) { if (Log.IsInfoEnabled) Log.Info(string.Format("{0} {1}", baseClient.TcpEndpoint, e.Message)); baseClient._srvr.Disconnect(baseClient); }
the unhandled exception triggers code in GameServer.cs around lines 831-836
- Code: Select all
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { log.Fatal("Unhandled exception!\n" + e.ExceptionObject); if (e.IsTerminating) LogManager.Shutdown(); }
My Patch is attached, handling possible exception in log displaying.
Can be committed to SVN quickly I think ?