Re: Sharing read/WRITE data between threads? [EXT]

2021-08-25 Thread David Booth
options in case I need them! Thanks, David Booth On 8/25/21 7:56 AM, James Smith wrote: The other problem with sharing writable data in "memory" is that it would not necessarily shared between multiple server instances. We run multiple mod_perl instances for reliability. Agree with

Sharing read/WRITE data between threads?

2021-08-24 Thread David Booth
to that shared data, such as locks or semaphores. I also posted this message to StackOverflow, but got no response so far: https://stackoverflow.com/questions/68901260/how-to-share-read-write-data-in-mod-perl-apache2 Any help would be appreciated! Thanks, David Booth

Re: Apache2::URI::unescape_url bug?

2014-06-26 Thread David Booth
On 06/26/2014 08:42 PM, Mark Hedges wrote: Try in a handler. (Apparently you cannot use Apache2::URI from command line?) use Apache2::Log (); use Apache2::URI (); sub handler { my ($r) = @_; my $string = "6%2D41913%2FUK1"; Apache2::URI::unescape($string); $r->log_error($stri

Re: Initial setup problems with mod_perl2 - unable to locate modules

2014-02-14 Thread David Booth
I used this tutorial to get mod_perl working the first time: http://perl.apache.org/docs/2.0/user/intro/start_fast.html Can you get that exact example (Rocks.pm) to work, following those instructions? Please try that first, rather than your actual project, just to get the invocation debugged.

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread David Booth
On 02/28/2013 09:32 AM, Torsten Förtsch wrote: On 02/28/2013 03:14 PM, demerphq wrote: A special place in hell is reserved for programmers that write code that assumes that spaces and other unprintables are illegal in a filename. Yes, right next door to another place in hell that is reserved f

Re: [mp2] mod_perl 2.0.7 Segmentation fault in OutputFilter(?)

2013-01-08 Thread David Booth
protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -L/usr/local/lib' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV > PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP > PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT > USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF > USE_REENTRANT_API > Built under linux > Compiled at Sep 14 2012 07:38:30 > @INC: > /prb/opt64/perl-5.14.2/lib/site_perl/5.14.2/x86_64-linux-thread-multi > /prb/opt64/perl-5.14.2/lib/site_perl/5.14.2 > /prb/opt64/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi > /prb/opt64/perl-5.14.2/lib/5.14.2 > . > > > Many thanx for any hints! > Petra > > > -- David Booth, Ph.D. http://dbooth.org/ Opinions expressed herein are those of the author and do not necessarily reflect those of his employer.

Re: Hello, I think TestRunPerl can save me, but I am not sure how to go about it...

2012-03-15 Thread David Booth
mod_perl archives leave me with no examples that don't > > already assume that someone knows all of the appropriate > > arguments and methods to call for setting up an object. > > > > Any help would be appreciated. > > > > -- > > Steven Lembark

Re: Obtaining the Apache Content-type for a file

2012-01-13 Thread David Booth
On Fri, 2012-01-13 at 12:09 -0500, David Booth wrote: > On Fri, 2012-01-13 at 16:06 +0100, André Warnier wrote: > > I have a PerlResponseHandler which processes some kind of "logical > > document-id" provided > > in a request, locates the corresponding "real d

Re: Obtaining the Apache Content-type for a file

2012-01-13 Thread David Booth
/perl.apache.org/docs/2.0/api/Apache2/SubRequest.html#C_internal_redirect_ and let Apache set the Content-Type for you. If you do find the direct answer to your question, please post it, as I'm interested in this question also. Thanks! -- David Booth, Ph.D. http://dbooth.org/ Opinions expressed herein are those of the author and do not necessarily reflect those of his employer.

Re: [SOLVED] Re: How to run shell command from response handler? (Apache2 child segmentation fault)

2012-01-08 Thread David Booth
d the whole point of this thread, but it > seems to me that everyone is over-engineering the problem... (i've > only been a Perl programmer for like three years, so I still have > ton's to learn... hopefully I can learn from this if I'm way off > base) > > > Tha

[SOLVED] Re: How to run shell command from response handler? (Apache2 child segmentation fault)

2012-01-03 Thread David Booth
, David On Tue, 2012-01-03 at 17:26 -0500, Daniel Risacher wrote: > I think I've been bitten by this too, years ago. > > I *think* I solved it by switching to mpm_prefork, which was > unsatisfying, but adequate for my needs. > > On Tue, Jan 3, 2012 at 5:21 PM, David Bo

Re: How to run shell command from response handler? (Apache2 child segmentation fault)

2012-01-03 Thread David Booth
play { > system "/usr/bin/xmms -t 2> /dev/null"; > } > > > On Tue, Jan 3, 2012 at 12:48 PM, David Booth wrote: > > I am trying to run a shell command from a mod_perl2 response handler. > > It works properly for some number of HTTP requests, but sometimes it &

How to run shell command from response handler? (Apache2 child segmentation fault)

2012-01-03 Thread David Booth
automatically re-try the request when it fails, thus giving the illusion of succeeding. P.S. I have posted about this on perlmonks, but thus far have not found a solution: http://www.perlmonks.org/?node_id=945947 -- David Booth, Ph.D. http://dbooth.org/ Opinions expressed herein are thos

Re: PIPE and mod_perl2

2011-12-05 Thread David Booth
ttp://perl.apache.org/docs/2.0/user/handlers/http.html#item_The_special_case_of__code_Content_Length__0__code_ -- David Booth, Ph.D. http://dbooth.org/ Opinions expressed herein are those of the author and do not necessarily reflect those of his employer.

[Fwd: Conflicting mod_perl 2 documentation -- no print() method in Apache2::RequestRec]

2011-11-14 Thread David Booth
Stas Bekman suggested that I forward this issue to this list . . . . Forwarded Message From: David Booth This section of the mod_perl 2 User Guide: http://perl.apache.org/docs/2.0/user/handlers/intro.html#What_are_Handlers_ shows a simple handler subroutine that will be called