I have a WCF service using mono. It has a single POST function. I see that it crashes after about 6-7 hours on a client call with the following exception. The client has been calling every ~10 seconds. I am a Windows programmer and new to mono, at least in Windows under no circumstances have i seen WCF service crash by a client API call.
Unhandled Exception: System.IO.IOException: Read failure ---> System.Net.Sockets.SocketException: interrupted at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in :0 at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in :0 --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in :0 at System.Net.RequestStream.Read (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in :0 at System.IO.StreamReader.ReadBuffer () [0x00000] in :0 at System.IO.StreamReader.Peek () [0x00000] in :0 at System.Runtime.Serialization.Json.PushbackReader.Peek () [0x00000] in :0 at System.Runtime.Serialization.Json.JsonReader.PeekChar () [0x00000] in :0 at System.Runtime.Serialization.Json.JsonReader.SkipWhitespaces () [0x00000] in :0 at System.Runtime.Serialization.Json.JsonReader.Read () [0x00000] in :0 at System.Xml.XmlReader.MoveToContent () [0x00000] in :0 at System.ServiceModel.Channels.XmlReaderBodyWriter..ctor (System.Xml.XmlDictionaryReader reader) [0x00000] in :0 at System.ServiceModel.Channels.Message.CreateMessage (System.ServiceModel.Channels.MessageVersion version, System.String action, System.Xml.XmlDictionaryReader body) [0x00000] in :0 at System.ServiceModel.Channels.WebMessageEncoder.ReadMessage (System.IO.Stream stream, Int32 maxSizeOfHeaders, System.String contentType) [0x00000] in :0 at System.ServiceModel.Channels.Http.HttpReplyChannel.CreatePostMessage (System.ServiceModel.Channels.Http.HttpContextInfo ctxi) [0x00000] in :0 at System.ServiceModel.Channels.Http.HttpReplyChannel.TryReceiveRequest (TimeSpan timeout, System.ServiceModel.Channels.RequestContext& context) [0x00000] in :0 at System.ServiceModel.Channels.ReplyChannelBase.m__0 (TimeSpan tout, System.ServiceModel.Channels.RequestContext& ctx) [0x00000] in :0 I also tried to stop this by implementing IErrorHandling interface but no luck.. I can paste the code for error handling if needed. Thanks for your help -- View this message in context: http://mono.1490590.n4.nabble.com/Mono-WCF-Service-crash-tp4665283.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. _______________________________________________ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list