[Xitami] Possible race condition in Xitami's temporary files module
Dmitry Isakbayev
xitami@lists.xitami.org
Sat, 16 Mar 2002 11:26:19 -0500
Message: 8
From: Ewen McNeill <ewen@imatix.com>
Subject: Re: [Xitami] 50+ simultaneous users...
To: xitami@lists.xitami.org
Date: Thu, 14 Mar 2002 17:20:48 +1300
Reply-To: xitami@lists.xitami.org
>Without having run into this before myself, my hunch is that there's
>perhaps some race condition in Xitami between when the temporary files
>are read in (from the CGIs), and when the size of the file is recorded.
>In which case this would be most obvious when the load on the machine
>gets fairly high (and 50 simultaneous users all running CGIs at once
>would start to do that).
Ewen,
We use LRWP and sometimes experience similar problems. I also noticed that
sometimes Xitami leaves a temporary file behind.
If there might be a bug in the way Xitami handles temporary files, how can
we avoid using them?
Perhaps by explicitly providing Content-Size using a CGI hint?
Instead of using temporary files, can Xitami be configured to store content
in memory?
How can I learn more about the way Xitami uses temporary files and generates
temporary file names?
Thank You,
Dmitry