我使用单声道2.10.8在Linux(Centos 6.4)中运行自托管ServiceStack应用程序。
我间歇性地在日志中看到以下错误 - 这是相当随机的。有时一分钟或更长时间没有错误,有时快速连续出现一些错误。它似乎不会影响我的应用程序的运行。
ERROR2013-04-24 05:40:23 – Error in HttpListenerResponseWrapper: Write failure
System.IO.IOException: Write failure ---> System.Net.Sockets.SocketException: The socket has been shut down
at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32 size, SocketFlags flags) [0x00000] in <filename unknown>:0
at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename unknown>:0
at System.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.Net.ResponseStream.Close () [0x00000] in <filename unknown>:0
at ServiceStack.WebHost.Endpoints.Extensions.HttpResponseStreamExtensions.CloseOutputStream (System.Net.HttpListenerResponse response) [0x00000] in <filename unknown>:0
我注意到:
在mono / Fastcgi下运行有一些测试,看起来有问题。这有关系吗?有没有解决方法呢?