Re: mod_perl and utf8 and CGI->param

2014-09-04 Thread Torsten Förtsch
On 03/09/14 21:38, Randal L. Schwartz wrote: > What I need to know is what is mod_perl doing differently? Does it not > respect binmode STDIN, ":utf8"? Apparently not. So if you know of a > way to get mod_perl to "fix" reading from the browser properly, I'm > interested in that. Something along

Re: $r->path_info unreliable?

2014-06-23 Thread Torsten Förtsch
On 19/06/14 02:13, Worik Stanton wrote: > In my handler I call $r->path_info to determine the path used to > call my script. > > I am trying to have a test version of my code using the same module > but which reads different data based on the path. > > So I have: > > > SetHandler perl-script

Re: how to detect if current connection is https?

2014-06-12 Thread Torsten Förtsch
On 12/06/14 11:41, Louis-David Mitterrand wrote: > I found Apache2::ModSSL which adds $c->is_https but it seems old and not > packaged for debian. I am the author of said module. I haven't tried it with the httpd24 branch. But for httpd 2.2. it is expected to work. However, the only reason you mi

Re: Scoreboard effects on server performance [was Re: Accessing list of worker statuses in /server-status via Apache2::Status]

2014-01-09 Thread Torsten Förtsch
On 09/01/14 00:53, Fred Moyer wrote: > Getting a segfault with httpd 2.2.24/5.14.2, will get a coredump and > backtrace and report back. > I probably missed your initial mail, sorry. I take it the perl application accessing the scoreboard dumps core, not the apache, right? You need to compile the

Re: Problem with mod_perl and DBI/DBD::Oracle LD_LIBRARY_PATH is not being recognized?

2013-10-22 Thread Torsten Förtsch
On 22/10/13 18:13, Bruce Johnson wrote: >> To me the problem seems to be %ENV being tied to $r->subprocess_env. So, >> > neither PerlSetEnv nor SetEnv actually change the current process' >> > environment. > Pardon me if this sounds dumb, but what possible use are those directives, > then? > It'

Re: Problem with mod_perl and DBI/DBD::Oracle LD_LIBRARY_PATH is not being recognized?

2013-10-22 Thread Torsten Förtsch
On 21/10/13 19:57, Bruce Johnson wrote: > We've set a Directory directive for some perl scripts, setting a mod_perl > handler: > > Alias /card_access /home/allwebfiles/perl/catcard > > > SetHandler perl-script > PerlResponseHandler ModPerl::Registry > PerlOptions +ParseHeaders >

Re: Detection "connection reset by peer" in mod_perl before send a response

2013-08-10 Thread Torsten Förtsch
On 10/08/13 15:19, Lucas wrote: > But if apache receives "connection reset by peer" I would like to handle > it with mod_perl. > > And my question was - how to do that. http://foertsch.name/ModPerl-Tricks/postgres-notifications/index.shtml#goto8 Have a look at the wait_for_notification function.

Re: mod_perl and Transfer-Encoding: chunked

2013-07-05 Thread Torsten Förtsch
On 04/07/13 17:48, Bill Moseley wrote: > Applications probably don't > need to care. They should receive the body -- so for mod_perl that means > reading data using $r->read until there's no more to read and then the app > should never need to look at the Transfer-Encoding header -- or > Content-L

Re: Net::SAML2 Compilation Error

2013-05-28 Thread Torsten Förtsch
On 28/05/13 09:06, Nageswara rao Gurram wrote: > I am using PerlModule Apache2::porting for debugging purpose. Oh my goodness! I have never had a look at this module before. This thing tries to be really clever. It installs an &UNIVERSAL::AUTOLOAD and overwrites CORE::GLOBAL::require. The module

Re: Net::SAML2 Compilation Error

2013-05-27 Thread Torsten Förtsch
On 27/05/13 14:37, Nageswara rao Gurram wrote: > My mod_perl simply can't load XML::Generator. As soon as I put "use > XML::Generator;" in a perl startup file and include in httpd.conf, > Apache won't start, complaining that it can't locate > XML/Generator/overload.pm in @INC. > > But the package

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-14 Thread Torsten Förtsch
On 14/05/13 09:57, jitendra.s...@accenture.com wrote: > I posted the issue on AMF group only then they said to post query to > apache perl group.Is there any other forum where I can get solution > for this issue? I didn't follow this thread. So, please ignore if this has been asked before. What h

Re: automatically restart httpd

2013-04-23 Thread Torsten Förtsch
On 23/04/13 22:48, Ryan Perry wrote: > except I use a threaded MPM so I can't use child_terminate. Is there > another method similar to that? yes, use prefork, ;-) Sorry, couldn't resist. Torsten

Re: automatically restart httpd

2013-04-23 Thread Torsten Förtsch
On 23/04/13 17:49, Ryan Perry wrote: > I've been plagued by some bug that makes a call to LWP stop working: > "Can't connect to 192.168.0.222 (Bad hostname)" If you can catch the error when it occurs, you can call $r->child_terminate to terminate the process after the current request. The parent a

Re: [JOB] looking for a new project

2013-04-10 Thread Torsten Förtsch
On 10/04/13 14:34, Torsten Förtsch wrote: > I know the modperl mailing list has been used time and again for job > offers or applications. I am here to do the latter. This mail is intended to Jiří who sent a reply to my message. Sorry for that, but when I tried to reply to your mail I

[JOB] looking for a new project

2013-04-10 Thread Torsten Förtsch
Hi, I know the modperl mailing list has been used time and again for job offers or applications. I am here to do the latter. People on this list tend to know me as committer and as a helping hand if they encounter problems with modperl or httpd. Currently, I am looking for a project preferably i

Re: Wrong code example in /docs/general/testing/testing.html

2013-03-18 Thread Torsten Förtsch
On 03/12/2013 02:59 AM, Martín Ferrari wrote: > +$r->write("ok 1"); > +$r->write("not ok 2"); I think it should read (missing \n): +$r->write("ok 1\n"); +$r->write("not ok 2\n"); Torsten

Re: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-03-02 Thread Torsten Förtsch
On 02/28/2013 11:59 AM, Torsten Förtsch wrote: > I agree with you that the behavior is unexpected. Also, the XXX comment > in line 783 points out that my_finfo() is a temporary solution. So, > perhaps it would be best to use APR::Finfo here. If family allows it > I'll fix it over

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

2013-02-28 Thread Torsten Förtsch
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. +1 Torsten

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

2013-02-28 Thread Torsten Förtsch
On 02/28/2013 12:31 PM, alexander.elg...@external.t-systems.com wrote: > >> > [Wed Feb 13 16:27:33 2013] [error] [client 192.168.254.21] Unsuccessful >> > stat on filename containing newline at >> > /usr/local/lib64/perl5/ModPerl/RegistryCooker.pm line 787.\

Re: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread Torsten Förtsch
On 02/14/2013 02:39 AM, Michael A. Capone wrote: > [Wed Feb 13 16:27:33 2013] [error] [client 192.168.254.21] Unsuccessful > stat on filename containing newline at > /usr/local/lib64/perl5/ModPerl/RegistryCooker.pm line 787.\n > > ... which in turn results in a 500 Server Error. The culprit here

Re: $r->requires() issue.

2013-02-05 Thread Torsten Förtsch
On 02/05/2013 05:38 PM, Hibbard, Timothy wrote: > Why does it say Apache2::RequestRec instead of Apache2::Access? This is to be expected. Many of the Apache2::* modules import methods to the Apache2::RequestRec namespace. Sorry for not being helpful with your actual problem. Perhaps you have a lo

Re: $r->requires() issue.

2013-02-05 Thread Torsten Förtsch
On 02/05/2013 05:27 PM, Hibbard, Timothy wrote: > Can someone clue me in to what libraries are needed for $r->requires(). $ perl -MModPerl::MethodLookup -e print_method requires To use method 'requires' add: use Apache2::Access (); Torsten

Re: [mp2] mod_perl resulting apache failure

2013-02-05 Thread Torsten Förtsch
On 02/05/2013 03:37 PM, jitendra.s...@accenture.com wrote: > Also, can you please elaborate how 32bits arcitecture can create issue here. Did you read the thread I mentioned? In particular: http://www.gossamer-threads.com/lists/modperl/modperl/103551#103551 I just noticed that the link to the

Re: [mp2] mod_perl resulting apache failure

2013-02-05 Thread Torsten Förtsch
On 02/05/2013 01:29 PM, jitendra.s...@accenture.com wrote: > 1. Problem Description: > > Apache start is failing after adding mod_perl module in httpd.conf. > I take it you ran "make test" and all tests passed? Then make sure you use the same perl/modperl/httpd combination. Make sure all the pat

Re: Apache2 constants syntax question

2012-12-16 Thread Torsten Förtsch
On 12/16/2012 12:59 PM, André Warnier wrote: > Is there a difference ? no > If not, what was the idea in defining some of them twice with a > different name ? I think mostly historical. Mp1 already had these overlapping sets. In the beginning mp2 tried to be as compatible as possible to mp1. To

Re: setHandler question

2012-12-15 Thread Torsten Förtsch
On 12/15/2012 01:30 PM, André Warnier wrote: > And somehow the $r->add_config() looks a bit like a roundabout way of > achieving what I want. If I can, kind of, "stuff" an additional > SetHandler configuration directive into the Apache configuration for my > request, telling Apache "now do as if t

Re: setHandler question

2012-12-15 Thread Torsten Förtsch
On 12/14/2012 02:52 PM, André Warnier wrote: > Or am I totally off-track here ? I think yes, you are confused by the similarity of "finfo" and "OR_FILEINFO". The finfo part of $r is simply a data structure that represents the metadata of a file on the filesystem such as modification dates, access

Re: 2.0.4 works, 2.0.7 doesn't

2012-12-15 Thread Torsten Förtsch
On 12/14/2012 11:41 PM, Grant wrote: > I'm using Interchange::Link for linking mod_perl to Interchange ( > icdevgroup.org). It works with 2.0.4 but breaks with 2.0.7. Someone told > me they tracked it down to line 684: > > while( ) { > > https://github.com/interchange/interchange/blob/master/d

Re: Charset in response

2012-11-29 Thread Torsten Förtsch
On 11/29/2012 10:37 AM, André Warnier wrote: > When I say that it doesn't work, I mean in fact : > - the "Content-Type" response header sent by the server is properly set > according to what I do above (as verified in a browser plugin) > - but if what I print contains "accented" characters, they ar

Re: get the incoming TCP protocol type

2012-11-26 Thread Torsten Förtsch
On 11/26/2012 09:05 AM, André Warnier wrote: > > http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond > > there is apparently a "server variable" HTTPS which can be tested in a > RewriteCond, and which looks just like what I need : > > HTTPS > Will contain the text "on" if the c

Re: get the incoming TCP protocol type

2012-11-25 Thread Torsten Förtsch
On 11/24/2012 11:51 PM, André Warnier wrote: > Building it on Windows from the tar.gz doesn't seem to work either, as > it appears to require gcc (and probably a lot of other things not > available on my XP laptop). ModSSL.xs does not contain any Linux-specific stuff. It should be compilable on Wi

Re: get the incoming TCP protocol type

2012-11-24 Thread Torsten Förtsch
On 11/24/2012 08:11 PM, Fred Moyer wrote: > On Sat, Nov 24, 2012 at 7:58 AM, André Warnier wrote: >> > Inside a mod_perl2 request handler, how can I find out if the current >> > request was received via HTTP or HTTPS ? > Torsten is the author of this module, so he can explain it in more > detail,

Re: custom proxy setup with mod_perl

2012-11-23 Thread Torsten Förtsch
On 11/23/2012 06:39 PM, André Warnier wrote: > 1) is that "early enough" to be before the Apache ProxyPass step ? yes, the proxy works as usual in the response phase. > 2) can I set the "(corresponding hostname)" above in such a Perl > handler, or otherwise manipulate the URI before it gets proxy

Re: Apache2::Module::get_config: s is not of type Apache2::ServerRec

2012-11-20 Thread Torsten Förtsch
On 11/20/2012 09:38 PM, Samuel Gómez wrote: > my $cfg = Apache2::Module->get_config(__PACKAGE__, $s); try: Apache2::Module::get_config(__PACKAGE__, $s); The way you call it means Apache2::Module::get_config('Apache2::Module', __PACKAGE__, $s); Torsten

Re: question on sub-requests

2012-11-14 Thread Torsten Förtsch
On 11/14/2012 03:53 PM, André Warnier wrote: > The tidbit above makes me think about a possibility to solve another > issue that happens from time to time : some users browsers that are NOT > refreshing their copies of stylesheets or javascript libraries, even > though they have been modified. > No

Re: question on sub-requests

2012-11-14 Thread Torsten Förtsch
On 11/14/2012 02:48 PM, André Warnier wrote: > I my particular case, the sendfile() solution above works fine, because > I am sure in this case that no additional processing needs to take place > on those static pages. What I meant in particular was the HTTP code 304 generation. With your solution

Re: question on sub-requests

2012-11-14 Thread Torsten Förtsch
On 11/13/2012 07:17 PM, André Warnier wrote: > I didn't want to take too much time of anyone before, which is why I > somewhat oversimplified the issue. But considering the traffic on the > lis os low, maybe you want to hear the whole story after all. > > The basic case is this : a bit aside from

Re: question on sub-requests

2012-11-13 Thread Torsten Förtsch
On 11/12/2012 06:19 PM, André Warnier wrote: > In response to some request URLs, I have to compose a response > structured as follows : > > - a html frameset document with two frames > - in the 1st frame, the result of another HTTP request to the same > Apache server. > This URI of this HTTP req

Re: failure using Socket in PerlSection

2012-11-10 Thread Torsten Förtsch
On 11/10/2012 03:43 PM, Mark Heiges wrote: > > On Nov 9, 2012, at 10:36 PM, Mark Heiges wrote: > >> I have a name-based virtual host and want to use Socket.pm in a PerlSection: >> >> >> use Socket; >> >> >> but when starting httpd I get the error, >> >> $parms->add_config() has failed: Invalid

Re: A question about the dumplicated named global variables

2012-11-09 Thread Torsten Förtsch
On 11/09/2012 06:40 AM, Feng He wrote: > Nobody knows this item? I think you didn't get an answer here because the question is not related to modperl. It's purely perl matter. Exporting a variable out of package A into package X means something like *X::var=\$A::var; Now, you have to figure o

Re: mod_perl and Apache::Test

2012-10-09 Thread Torsten Förtsch
On 10/09/2012 10:44 AM, Jean-Michel wrote: > I have some mod_perl modules that implement REST services. I want to > test them with Apache::Test. So, I have some questions : > > - Is it possible to use DELETE method with Apache::Test ? I didn't > find any examples $ perl -MApache::TestRequest -le

Re: headers_out vs err_headers_out with temporary redirect 302

2012-09-05 Thread Torsten Förtsch
On 09/03/2012 03:59 PM, Anton Petrusevich wrote: >> From the doc: > === The difference between headers_out and err_headers_out, is that > the latter are printed even on error, and persist across internal > redirects (so the headers printed for ErrorDocument handlers will > have them). === Yes,

Re: Framework for handling Query tasks that take a LONG time

2012-07-23 Thread Torsten Förtsch
On 07/23/2012 05:20 AM, Igor Chudov wrote: > I am working on my internal IT system for my business. It is, of course, > mod_perl based, as is the rest of what I do (algebra.com etc). > > As a part of it, I have an intranet web form that starts a task, which > happens to take a long time, such as m

Re: Applying mod_perl filters to content served from JBOSS

2012-06-26 Thread Torsten Förtsch
On 06/26/2012 09:46 AM, Rommel Sharma wrote: > > > SetHandler modperl You don't need that. SetHandler declares the response handler. But your response is generated either by the default handler for static content or by mod_jk. "SetHandler modperl" should be used only if there is also a Perl

Re: Intercepting and modifying response

2012-06-15 Thread Torsten Förtsch
On 06/15/2012 04:12 PM, Rommel Sharma wrote: > I need to intercept and modify the response that is coming from JBOSS to the > Apache Web (httpd) server and being returned to the client. Look for PerlOutputFilterHandler in the docs. Torsten

Re: SIGILL, illegal instruction on httpd startup

2012-06-12 Thread Torsten Förtsch
On 06/13/2012 04:50 AM, Chris Kaltwasser wrote: > Backtrace: > Program received signal SIGILL, Illegal instruction. > 0x00344ba14c30 in _dl_x86_64_save_sse () from > /lib64/ld-linux-x86-64.so.2 looks like your CPU does not support an instruction the library is trying to use. Or the lib is corr

Re: Perlhandler bugs when set up on the root of the domain

2012-06-12 Thread Torsten Förtsch
On 06/12/2012 03:01 PM, David Levy wrote: > Hi everyone, > > i've start working with mod_perl and perlhandler few weeks ago in a > folder of my domain (mydomain.com/folder/) and everything was fine. > > I've recently tried to set it up on the root of my domain, but now, i've > got an error 500 wh

Re: mod_perl and Apache::DBI - what happens on request termination

2012-06-05 Thread Torsten Förtsch
read the data. If recv(2) returns with an error cancel the DB transaction. If select(2) reports the DB connection ready handle it. That's the way I'd try it. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: xmlRMutexLock deadlock?

2012-05-29 Thread Torsten Förtsch
XML being executed when an interpreter is shut down. What it waits for here I don't know. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: AW: AW: AUTH password

2012-05-16 Thread Torsten Förtsch
via /proc. This is perhaps the reason why the header was not passed on in the first place. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Can I somehow call ap_make_content_type

2012-04-29 Thread Torsten Förtsch
"perl Makefile.PL && make test" This builds a new module Apache2::HTTPCore which implements one method: use Apache2::HTTPCore (); $newtype=$r->make_content_type($type); Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Quiet Internal Server Errors

2012-04-04 Thread Torsten Förtsch
s. So, STDERR should point to the main server errorlog. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Quiet Internal Server Errors

2012-04-04 Thread Torsten Förtsch
en, naming the handler Phase::PostConfig::post_config and configuring it as Phase::PostConfig::handler won't work. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: difference between PerlSetEnv and $ENV{}= ?

2012-03-27 Thread Torsten Förtsch
%ENV. I don't know. Maybe it segfaults since there is no $r in this situation. Would be good if someone could at least setup a test scenario for this case. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: apache 2.4.x and mod_perl 2.0

2012-03-15 Thread Torsten Förtsch
p://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/include/httpd.h?r1=1204743&r2=1208378 IMHO, we should implement a compatibility function that maps remote_ip() to client_ip and provide the new structure members independently. Torsten Förtsch -- Need professional modperl support? Hire

Re: apache 2.4.x and mod_perl 2.0

2012-03-15 Thread Torsten Förtsch
at MPM and a perl without ithreads or multiplicity. In that case the part of modperl_interp.c that is actually compiled is very short (USE_ITHREADS is not defined). In short, I didn't get to this point. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foe

Re: apache 2.4.x and mod_perl 2.0

2012-03-14 Thread Torsten Förtsch
ost tests. Why do you want to do the same work that I have done last summer again? Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Funding [WAS :Re: trying to compile mod_perl against httpd-2.4.1]

2012-03-07 Thread Torsten Förtsch
d modperl will support httpd 2.4. But it requires work to be done. You can help. Sorry for the late reply, I was on vacation. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Terminating Child process Dynamically

2012-03-07 Thread Torsten Förtsch
ister so we end up last */ if (data) { apr_pool_cleanup_register(pool, NULL, child_terminate, apr_pool_cleanup_null); } else { exit(0); } return APR_SUCCESS; } Torsten Förtsch -- Need professional modperl support? Hire m

Re: Terminating Child process Dynamically

2012-03-07 Thread Torsten Förtsch
me even simpler: $r->pnotes->{terminator}=guard {CORE::exit 0}; Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: AW: mod_perl-2.0.5 -- nullpointer patch

2012-02-22 Thread Torsten Förtsch
it I'll have a closer look after my vacation. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: mod_perl-2.0.5 -- nullpointer patch

2012-02-22 Thread Torsten Förtsch
before doing anything (where XXX is one of url, dir or file). Would be interesting to see the configuration that triggers it. Can you provide an as much as possible stripped down configuration that exposes the bug? Torsten Förtsch -- Need professional modperl support? Hire me! (http:

Re: trying to compile mod_perl against httpd-2.4.1

2012-02-22 Thread Torsten Förtsch
th MP_ASSERT. Then perhaps comes the PerlInterpInitHandler, PerlInterpExitHandler stuff or the httpd 2.4 port. I also like the "PerlDeclareInterp fritz ... ... ... PerlUseInterp fritz" idea. If anybody wants to participate don't hesitate. Torsten Förtsch -- Need professional modperl support?

Re: disabling directives in .htaccess files

2012-02-10 Thread Torsten Förtsch
to be perceived significant groupings of the MP_CMD_DIR_* > cmd's in modperl_cmds.c. Perhaps something along these lines: http://perl.apache.org/docs/2.0/user/config/config.html#C_Perl_Handler_ Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.na

Re: Interrupting a POST with file upload

2012-02-08 Thread Torsten Förtsch
->{'.upload_hook'}) { $totalbytes += length($data); &{$self->{'.upload_hook'}}($filename ,$data, $totalbytes, $self->{'.upload_data'}); } print $filehandle $data if ($self->{'use_tempfile'}); } Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: mod_perl and mod_rewrite can work together ?

2012-01-26 Thread Torsten Förtsch
On Thursday, 26 January 2012 13:02:09 Idel Fuschini wrote: > $f->headers_out->set(Location => $location); err_headers_out? Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Adding Post Data to a SubRequest

2011-12-15 Thread Torsten Förtsch
ficient. Even an internal redirect will do if invoked before the response phase. (The core response handler calls ap_discard_request_body.) Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Adding Post Data to a SubRequest

2011-12-15 Thread Torsten Förtsch
lude response handler. It turned out to be quite tricky. Maybe it helps. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net --- modules/filters/mod_include.c.orig 2011-10-07 14:49:47.461434968 +0200 +++ modules/filters/mod_in

Re: mod_perl 2.0.5 segfaults

2011-12-12 Thread Torsten Förtsch
On Monday, 12 December 2011 20:51:12 Jiří Pavlovský wrote: > I wanted to upgrade my CentOS5 based system to new perl/mod_perl. > So I build my perl 5.14.2 and mod_perl 2.0.5. > > I'm getting segfaults whenever I try to access the server. If it's worker MPM try trunk. Tor

Re: Is it me or is mod_perl extremely dangerous?

2011-12-07 Thread Torsten Förtsch
"; shift->SUPER::output(@_); } - Now you really rely on an implementation detail of MyClass. Let's hope this usage of $MyClass::class_level_attribute is documented. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: [mp2] [BUG] Segfault with Test::More - duping STDOUT?

2011-12-07 Thread Torsten Förtsch
Can you reproduce the bug with modperl 2.0.5 or above (trunk)? There is a bug that has been fixed in 2.0.5 that could course this behavior (I guess). see http://svn.apache.org/viewvc?view=revision&revision=932875 Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: [mp2] [BUG] Segfault with Test::More - duping STDOUT?

2011-12-07 Thread Torsten Förtsch
, when Test or Test::More is used in *.t files that does not matter. But with server based tests in modperl they must work in the same interpreter. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: PIPE and mod_perl2

2011-12-05 Thread Torsten Förtsch
56 time=158 ms 1323076536 64 bytes from www.yandex.ru (77.88.21.3): icmp_seq=3 ttl=56 time=158 ms 1323076537 64 bytes from www.yandex.ru (77.88.21.3): icmp_seq=4 ttl=56 time=158 ms 1323076537 You see the first few lines come in at the same time. Then between each of the ping

Re: Apache Children Stuck on futex

2011-11-14 Thread Torsten Förtsch
n't it be better to allocated an array of tipool->cfg->max pointers? Or perhaps an apr_hash_t in pconf? Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Can Apache proxy interfere incoming request manipulate it forward and then do the same on response using mod_perl?

2011-11-13 Thread Torsten Förtsch
p to you to conceive. http://perl.apache.org/docs/2.0/user/handlers/filters.html Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: suggestions for dynamic run-time configuration?

2011-11-01 Thread Torsten Förtsch
red as 2 different things and you get them out as such. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Apache Children Stuck on futex

2011-10-29 Thread Torsten Förtsch
on. One way to check that is perhaps to allow core dumps in the apache config and then to send a core dump signal like SEGV, BUS or similar when the process hangs. Use the dump file then to get a stack trace. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: [mp2] mod_perl drops IO channel using Net::SSH::Expect Every Other Time via Apache2-Debug Reports Success Everytime

2011-10-29 Thread Torsten Förtsch
prefork because it is our best tested environment. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: mod_perl2 and Perl 5.14 with uselargefiles on 32-bit architectures

2011-10-23 Thread Torsten Förtsch
hat it would be applied are much higher that way. It would also be much easier to review. Thanks, Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Getting a non-zero error code from httpd(1) if the application doesn't compile

2011-10-16 Thread Torsten Förtsch
r sure that the Response phase is run by the same interpreter as Fixup is. But both interpreters would be clones of the interpreter pool parent. Conclusion: 1) As can be seen by the example above httpd can report a return code to the calling shell only while restart_count==1. Otherwise it has already

Re: Getting a non-zero error code from httpd(1) if the application doesn't compile

2011-10-15 Thread Torsten Förtsch
$? 15 $ cat xx die $ httpd -c 'Include "'$PWD/xx'"'; echo $? Syntax error on line 2 of /.../xx: \t(in cleanup) Died at /.../xx line 2.\n 1 $ Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Build mod_perl and Perl with multiplicity, but without ithreads

2011-10-05 Thread Torsten Förtsch
's bug? This is a design mistake from the very beginning of mp2. We'd all appreciate if someone would sit down to sort it out. Patches welcome. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: mod_perl problem?!

2011-09-28 Thread Torsten Förtsch
wever, since PL_envgv is just a member of the current interpreter I rather think that in 5.14.1 that thing is not set at this point. You could try to put a PERL_SET_CONTEXT(aTHX); in mod_perl.c:modperl_boot() just before modperl_env_clear(aTHX); is called. Torsten Förtsch -- Need profession

Re: problem with mod_perl and twiki

2011-09-19 Thread Torsten Förtsch
modperl tries to interpret those files as perl code. I don't know TWiki but I think you should modify the regexp above to match only perl scripts, something like ".+\.pl". It depends upon your or rather TWiki's naming conventions. Torsten Förtsch -- Need professional modperl s

Re: mod_perl - separate PERL interpreter for each LocationMatch

2011-09-12 Thread Torsten Förtsch
be pre-populated at startup time. Note however, that since the config is read only once it can be changed only by starting up a new interpreter. If that's a problem you can monitor file modification times for example. If I were you I'd use an MMapDB object. Torsten Förtsch --

Re: mod_perl - separate PERL interpreter for each LocationMatch

2011-09-12 Thread Torsten Förtsch
then gets it's own perl interpreter. It has been requested a few times to make it possible to change the interpreter per request configuration but nobody has got around to do the work yet. Something along these lines would be good: PerlSwitches ... PerlRequire ... PerlModule ... PerlSwitches ... PerlRequire ... PerlModule ... PerlUseInterpreter MyInterpreter Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: mod_perl - separate PERL interpreter for each LocationMatch

2011-09-12 Thread Torsten Förtsch
SetHandler > perl-script PerlResponseHandler Module::Test > Please help me with this, Thanks in > advance.Regards,uttam Could you please resend the mail with proper line breaks? Otherwise, it's indecipherable, at least for me. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Changing Apache configuration for each request

2011-08-12 Thread Torsten Förtsch
On Friday, 12 August 2011 15:55:46 Marcus Don wrote: > > Can't locate object method "add_config" via package > > "Apache2::RequestUtil" Did you "use Apache2::RequestUtil ();"? For a use case refer to Apache2::Translation on CPAN. Torsten Förtsch

Re: Changing Apache configuration for each request

2011-08-12 Thread Torsten Förtsch
ill in $r->filename, $r- >finfo and perhaps $r->path_info. blocks are applied just after the maptostorage phase. They cannot be skipped. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Sharing variable in threaded mpm not working as expected

2011-08-02 Thread Torsten Förtsch
27;d create a simple shared scalar as a global counter. If that works (which I think it does) the rest is how to use threads::shared correctly. As for your code I think you could try to push shared apples like this push(@fruits,share('apple')); Perhaps even push(@fruits,share

Re: Apache::DBI

2011-08-02 Thread Torsten Förtsch
tegy for new development because it gives you maximum control over what is going on. But that's just my humble opinion. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Random build failures

2011-07-29 Thread Torsten Förtsch
On Friday, 29 July 2011 12:21:49 Mark Fowler wrote: > t/apache/read3.t Do you use LWP 6.x? If yes, try the latest LWP 5. See also http://www.gossamer-threads.com/lists/modperl/dev/103034 Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? h

Re: ModPerl::RegistryLoader

2011-07-25 Thread Torsten Förtsch
r. As a remedy it shouldn't hurt much to comment this line out except for the first request that uses the database. Postgres normally connects quite fast. So I think it wouldn't be really noticable. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.

Re: cleanup handler - is it "free" time?

2011-07-20 Thread Torsten Förtsch
t's not possible queue the work internally (in $r->connection->pnotes for example) and use a $r- >connection->pool cleanup handler. That one runs when the connection is closed. Don't set MaxKeepAliveRequests to 0. Torsten Förtsch -- Need professional modperl support? Hir

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Torsten Förtsch
e sure they use the right header files and also use the DESTDIR option. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: mod_perl-1.31 compilation with perl 5.14.1 fails

2011-06-28 Thread Torsten Förtsch
nges into mp1. Though, if someone provides patches I think there are good chances for them to get applied especially if that someone wants to take care of mp1 in the future and thus become a committer. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: apache2 or mod_perl2 oddball error

2011-06-17 Thread Torsten Förtsch
till run perl 5.12. If I were you I'd compile apache and modperl from scratch. Take the SVN version of modperl. If the test suite reveals something it is a hint where to dig further. If not try to create a small test case with the error present and post it here. Torsten Förtsch -- Need p

Re: Same script with different locations

2011-05-29 Thread Torsten Förtsch
s etc. Nothing wrong with it. But be careful, the administrator can try to configure it like: or I am not 100% sure but I think $r->location will contain "(something| special)/" in that case. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foerts

Re: PerlAuthenHandler returns HTTP_UNAUTHORIZED (401) but Apache sends REDIRECT (302) and drops Set-Cookie and WWW-Authenticate header

2011-05-28 Thread Torsten Förtsch
ink you want to enter the "else if" branch. Further, make sure the document that is redirected to ends in a Apache2::Const::OK. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

Re: Measuring response time Apache request

2011-05-24 Thread Torsten Förtsch
t SetHandler modperl The response phase is a bit different from the other phases. The "SetHandler" is needed to make apache call the perl interpreter in the response phase. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net

  1   2   3   >