[Mono-list] Error 500 overnight

Gonzalo Paniagua Javier reply.to.the.list.iam.suscribed@notexists.ximian.com
Tue, 23 Nov 2004 17:14:14 -0500


On Tue, 2004-11-23 at 09:16 -0500, Charles Martin wrote:
> Well guys,
>     I finally got mod-mono working by changing the permissions
> on /root (probably the hackiest solution but it enables me to test my
> app..) But now I have this strange problem : My server (apache2 +
> mod-mono + xsp...)  is up and running the whole day without any
> troubles but, when I come back to work in the morning, I have this
> strange error : 
> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: Write failure ---> System.Net.Sockets.SocketException: The socket has been shut down
> 
> (I have attached the complete stack trace...)
> 
> If it may help diagnose the problem, I'm using the official
> MySql.Data.dll (supposedly Win32 only but it seems to work fine with
> mono) instead of the ByteFx one because it didn't support correctly
> the MediumText fields.

If that socket is kept open without reading/writing, it might be closed
by mysql or by the OS. Try setting the KeepAlive option for the socket.

-Gonzalo