[Xitami] Xitami crash question?
Ewen McNeill
xitami@lists.xitami.org
Sat, 11 May 2002 22:29:31 +1200
In message <3CDC6418.4857.279ED08@localhost>, "WhiteShepherd" writes:
> Well my art hopsting page is coming along fine so far. However with the
>increase in trafic I am getting some odd errors as Xitami crashes. Here is
>the error.
>------------
>smtsock: error on select(): Socket operation on non-socket
>Clean-memory assertion failes - xitami.c (208)
>Details are in memtrace.lst
I'm fairly sure that this is a race condition in smtsock, which in some
situations isn't updating it's list of file handles to look for I/O on
quickly enough before trying to use it again. We've seen similar
issues under Windows as well, and also in an internal rewritten version
of smtsock. Race conditions are, by their very nature, hard to track
down and completely fix.
As Bernd suggests, running Xitami in a "restart if it crashes" loop is
generally a good idea if you depend on it staying up, as there are a few
oddities like this which can cause it to give up when it shouldn't.
Ewen
--
Ewen McNeill, Technical Consultant, iMatix Corporation www.imatix.com