SpaceManiac / Spacecraft

Spacecraft is the SpaceManiac Minecraft Server, a C# server for Minecraft (http://minecraft.net) licensed under CC-BY-SA
3 stars 1 forks source link

System.Net.WebException Crash #2

Closed AtkinsSJ closed 14 years ago

AtkinsSJ commented 14 years ago

Another crash error. Details below. (Hurrah, my flaky connection is resulting in a more sturdy Spacecraft build! :P)

Unhandled Exception: System.Net.WebException: The request timed out
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] 
  at spacecraft.Server.Heartbeat () [0x00000] 
  at spacecraft.Server.TimerThread () [0x00000] 
AtkinsSJ commented 14 years ago

Another, seemingly related crash:

Unhandled Exception: System.Net.WebException: Error getting response stream (ReadDone1): ReceiveFailure ---> System.IO.IOException: EndRead failure ---> System.Net.Sockets.SocketException: Connection reset by peer
  at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException () [0x00000] 
  at System.Net.Sockets.Socket.EndReceive (IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode) [0x00000] 
  at System.Net.Sockets.Socket.EndReceive (IAsyncResult result) [0x00000] 
  at System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar) [0x00000] 
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar) [0x00000] 
  at System.Net.WebConnection.ReadDone (IAsyncResult result) [0x00000] 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] 
  at spacecraft.Server.Heartbeat () [0x00000] 
  at spacecraft.Server.TimerThread () [0x00000] 
AtkinsSJ commented 14 years ago

Hang on, looking in the code this exception appears to be handled! That doesn't make any sense, as I built from the latest source... Maybe I hadn't overwritten the exe properly.

SpaceManiac commented 14 years ago

Yeah, when the first bug came up I made sure to add some more graceful exception handling code to the heartbeat. Make sure that exe is overwritten properly :P