Subject: Socket Exceptions
Is Matrix Mobile handling socket errors? I received the following exception when the server that I was connected to was having problems. I can also get it to repeat by disconnecting my routers internet connection:
ErrorCode: 10054
Message: "An existing connection was forcibly closed by the remote host"
StackTrace:
at System.Net.Sockets.Socket.ReceiveNoCheck(Byte[] buffer, Int32 index, Int32 request, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at Matrix.Net.ClientSocket. ()
I also receive the following exception when I take away the emulator's network connection or turn off the WiFi/Phone radio on my device:
ErrorCode: 10038
Message: "An operation was attempted on something that is not a socket"
StackTrace:
at System.Net.Sockets.Socket.ReceiveNoCheck(Byte[] buffer, Int32 index, Int32 request, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at Matrix.Net.ClientSocket. ()
Thanks,
Mark
ErrorCode: 10054
Message: "An existing connection was forcibly closed by the remote host"
StackTrace:
at System.Net.Sockets.Socket.ReceiveNoCheck(Byte[] buffer, Int32 index, Int32 request, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at Matrix.Net.ClientSocket. ()
I also receive the following exception when I take away the emulator's network connection or turn off the WiFi/Phone radio on my device:
ErrorCode: 10038
Message: "An operation was attempted on something that is not a socket"
StackTrace:
at System.Net.Sockets.Socket.ReceiveNoCheck(Byte[] buffer, Int32 index, Int32 request, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer)
at Matrix.Net.ClientSocket. ()
Thanks,
Mark