BUG: Exception when network is disconnected in IDLE mode.

Jun 12, 2015 at 9:09 AM
If you set IDLE mode (StartIdling) and internet connection is lost, an Exception will be thrown:
ImapBase.cs : Line 593

System.IO.IOException was unhandled
Message=Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.
Source=System
StackTrace:
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Stream.ReadByte()
   at ImapX.ImapBase.WaitForIdleServerEvents()
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Net.Sockets.SocketException
   Message=An established connection was aborted by the software in your host machine
   Source=System
   ErrorCode=10053
   NativeErrorCode=10053
   StackTrace:
        at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   InnerException: