Where is the read ahead file created?

Where is the read ahead file created?

am 15.12.2008 15:28:45 von heni

(Originally posted on the PerlEx mailing list)

Reg. PerlEx:

When a request size exceeds the ReadAheadMemorySizeLimit value (but not the=
ReadAheadFileSizeLimit) the request data is stored in a temporary file in =
the file system, right?

I'm having trouble with a server which has gone through a rather serious se=
curity hardening. When the request size exceeds the ReadAheadMemorySizeLimi=
t value the request appears to time out. Raising the ReadAheadMemorySizeLim=
it value solves the immediate problem but I would like to solve it the righ=
t way - and I expect that means setting the right permissions in the file s=
ystem.

So my question is: Where should what user have what permissions for this to=
work?



Best regards
Henning Michael M=F8ller Just


_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: Where is the read ahead file created?

am 16.12.2008 03:02:42 von Jan Dubois

On Mon, 15 Dec 2008, Henning Michael M=F8ller Just wrote:
> =

> (Originally posted on the PerlEx mailing list)

Sorry, must have missed it there...
=

> Reg. PerlEx:
> =

> When a request size exceeds the ReadAheadMemorySizeLimit value (but not t=
he ReadAheadFileSizeLimit)
> the request data is stored in a temporary file in the file system, right?
> =

> I'm having trouble with a server which has gone through a rather serious =
security hardening. When the
> request size exceeds the ReadAheadMemorySizeLimit value the request appea=
rs to time out. Raising the
> ReadAheadMemorySizeLimit value solves the immediate problem but I would l=
ike to solve it the right way
> - and I expect that means setting the right permissions in the file syste=
m.
> =

> So my question is: Where should what user have what permissions for this =
to work?

The file is created in the temp directory returned by the GetTempPath() Win=
dows API:

| The GetTempPath function checks for the existence of environment variable=
s in the
| following order and uses the first path found:
|
| 1. The path specified by the TMP environment variable.
| 2. The path specified by the TEMP environment variable.
| 3. The path specified by the USERPROFILE environment variable.
| 4. The Windows directory.
|
| Note that the function does not verify that the path exists.
|
| Symbolic link behavior=97If the path points to a symbolic link, the temp =
path name
| maintains any symbolic links.

The filenames will start with "plx" followed by some hex digits.

So make sure that your environment variables are pointing to an existing di=
rectory,
and that the user has write access to that directory.

Cheers,
-Jan


_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs