RE: Intermittent File Upload Failures - CGI tmpfile unlinked

2010-03-30 Thread Ihnen, David
se I can't quite follow your logic given that in a "good" process the strace shows the file being written to, but in a "bad" process it shows it being unlinked instead of being written to (and it is never written to, and the perl also can not find the file after being given t

RE: Intermittent File Upload Failures - CGI tmpfile unlinked

2010-03-30 Thread Ihnen, David
An open file handle is a link; when creating a file with open you actually have two links to the file - one for the directory's link to it, and one for the process's link to it. Therefore unlinking the file from the file system simply reduces its link count to 1, and it will stay around, writab

RE: Best way to pass arguments to an Apache2::SubProcess?

2010-02-02 Thread Ihnen, David
Environment variables have size limits - you should pass it as the args reference because of that, and the fact that you're sending a pointer rather than the whole data helps too, though the system is probably copying it somewhere in there you shouldn't have to worry about it. The point they're

RE: Use form instead of AuthType Basic (pop-up windows)

2010-01-21 Thread Ihnen, David
in urls for download and media links handled by external programs that won't have the cookie) David From: Juan Manuel Parrilla Gutiérrez [mailto:joanma...@gmail.com] Sent: Thursday, January 21, 2010 10:21 AM To: Ihnen, David Cc: mod_perl list Subject: Re: Use form instead of AuthType Basic (p

RE: Use form instead of AuthType Basic (pop-up windows)

2010-01-21 Thread Ihnen, David
I happen to have just finished debugging my latest authen/authz cookie-based authentication module last night, so this is *really* fresh in my head. So right now you're using AuthType basic. Change that to something else specific to your module. The basic auth will no longer respond. Program

RE: $r->subprocess_env('REQUEST_URI') returns undef ?

2010-01-15 Thread Ihnen, David
At the risk of being kind of obvious, did you try $r->uri? http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_uri_ David -Original Message- From: Tosh Cooey [mailto:t...@1200group.com] Sent: Friday, January 15, 2010 10:42 AM To: modperl@perl.apache.org Subject: $r->subprocess

RE: A ghost in the machine?

2010-01-14 Thread Ihnen, David
Global? There's no need to use a global here. You only ever reference %CFG *in* the package... so just make it package scoped - it'll act like a static variable and persist. (scope it with 'my' and remove it from the export) You can always get the value you want with a call to MyConfig::cfg

RE: FreeBSD 7.2, mod_perl2 & Apache2::Cookie (libapreq2)

2009-10-29 Thread Ihnen, David
I have helped configure apache2 on versions of BSD - whether it's the latest or not is not in my knowledge, as I was merely handed servers of relative newness and paid to make apache2/mod_perl run on them. I just compiled from source with the packages in the BSD package system, configured them,

RE: Why people not using mod_perl

2009-10-23 Thread Ihnen, David
My first response is, “What makes you think they don’t?” But I must point out that at the scale that Amazon runs at, the technology used for front end web page rendering – as critical as it is – not what runs Amazon. Can you run service calls to caches and systems from a mason-based mod_perl in

RE: Ways to scale a mod_perl site

2009-09-18 Thread Ihnen, David
It amounts to shared private key security. Each web server, for instance, is configured with the key abcd1234 The session looks like { username => 'dog' , group => 'canid' , premium => 0 , login_time => 1253289574 } I serialize that into a string with join '|', (map { $_, $session->{$_} } sort

RE: Why people not using mod_perl

2009-09-17 Thread Ihnen, David
Perhaps it could in some portion be quantified as "The ability to think about a program without the ide/language structure suggesting paths for you". The possibilities are infinite. I can imagine that would be a problem for many. David From: Igor Chudov [mailto:ichu...@gmail.com] Sent: Thursd

RE: Why people not using mod_perl

2009-09-17 Thread Ihnen, David
Rather than develop and contribute the community the ideas used in integrating (IDE-app server-version store-job management) for the perl environment… you stop using perl for that. This is *exactly* why people are not using mod_perl – perl lacks the investment given to these big projects that p