in reply to Threaded MPM Sharing Variables (this time with complete test code)
because apparently MultiViews doesn't work well with the code for updating the logfile.<Location /testSharing> Options -MultiViews SetHandler perl-script PerlResponseHandler U2D::TestSharing </Location>
02-08-2011 13:09:40:037 9209-4216514368: Waiting for lock. 02-08-2011 13:09:40:045 9209-4216514368: Acquired lock. 02-08-2011 13:09:40:045 9209-4216514368: Initializing fruits. 02-08-2011 13:09:40:045 9209-4216514368: Releasing lock. 02-08-2011 13:09:40:045 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:40:443 9209-4216514368: Waiting for lock. 02-08-2011 13:09:40:443 9209-4216514368: Acquired lock. 02-08-2011 13:09:40:443 9209-4216514368: Releasing lock. 02-08-2011 13:09:40:443 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:40:941 9209-4216514368: Waiting for lock. 02-08-2011 13:09:40:941 9209-4216514368: Acquired lock. 02-08-2011 13:09:40:942 9209-4216514368: Releasing lock. 02-08-2011 13:09:40:942 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:41:000 9209-4216514368: Waiting for lock. 02-08-2011 13:09:41:001 9209-4216514368: Acquired lock. 02-08-2011 13:09:41:001 9209-4216514368: Releasing lock. 02-08-2011 13:09:41:001 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:41:014 9209-4216514368: Waiting for lock. 02-08-2011 13:09:41:014 9209-4216514368: Acquired lock. 02-08-2011 13:09:41:014 9209-4216514368: Releasing lock. 02-08-2011 13:09:41:014 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:41:062 9209-4216514368: Waiting for lock. 02-08-2011 13:09:41:063 9209-4216514368: Acquired lock. 02-08-2011 13:09:41:063 9209-4216514368: Releasing lock. 02-08-2011 13:09:41:063 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:41:090 9209-4216514368: Waiting for lock. 02-08-2011 13:09:41:090 9209-4216514368: Acquired lock. 02-08-2011 13:09:41:090 9209-4216514368: Releasing lock. 02-08-2011 13:09:41:090 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:41:119 9209-4216514368: Waiting for lock. 02-08-2011 13:09:41:119 9209-4216514368: Acquired lock. 02-08-2011 13:09:41:119 9209-4216514368: Releasing lock. 02-08-2011 13:09:41:120 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:41:146 9209-4216514368: Waiting for lock. 02-08-2011 13:09:41:146 9209-4216514368: Acquired lock. 02-08-2011 13:09:41:146 9209-4216514368: Releasing lock. 02-08-2011 13:09:41:146 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:41:191 9209-4216514368: Waiting for lock. 02-08-2011 13:09:41:192 9209-4216514368: Acquired lock. 02-08-2011 13:09:41:192 9209-4216514368: Releasing lock. 02-08-2011 13:09:41:192 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:41:222 9209-4216514368: Waiting for lock. 02-08-2011 13:09:41:222 9209-4216514368: Acquired lock. 02-08-2011 13:09:41:222 9209-4216514368: Releasing lock. 02-08-2011 13:09:41:222 9209-4216514368: I like to eat apple, banana, +peach. 02-08-2011 13:09:41:253 9209-4216514368: Waiting for lock. 02-08-2011 13:09:41:253 9209-4216514368: Acquired lock. 02-08-2011 13:09:41:253 9209-4216514368: Releasing lock. 02-08-2011 13:09:41:253 9209-4216514368: I like to eat apple, banana, +peach.
sub logTestMessage { my $message = shift; my $tid = APR::OS::current_thread_id(); if(open(FILE,'>>','/var/www/testSharing.log')) { print FILE $time{'dd-mm-yyyy hh:mm:ss:mmm'}.' '.$$.'-'.$tid.': + '.$message."\n"; close(FILE); } else { print "Error opening file: ".$!."\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Threaded MPM Sharing Variables (this time with complete test code)
by Neighbour (Friar) on Aug 02, 2011 at 11:24 UTC | |
by busymeister (Initiate) on Aug 05, 2011 at 04:55 UTC | |
by busymeister (Initiate) on Aug 09, 2011 at 06:15 UTC | |
by Neighbour (Friar) on Aug 08, 2011 at 08:13 UTC | |
by busymeister (Initiate) on Aug 09, 2011 at 05:01 UTC | |
by busymeister (Initiate) on Aug 09, 2011 at 05:48 UTC |