Re: PerlAuthenHandler advice needed.

2000-09-28 Thread Doug MacEachern
On Thu, 28 Sep 2000, Carlos Ramirez wrote: $r-auth_name($realm), $r-auth_type($basic) did not work for me, which is why I used the $r-header_out method. Also, after I set the outgoing header and returned AUTH_REQUIRED, I got prompted but the $realm did not show. Instead it displayed

Re: Make test error!!

2000-09-28 Thread Doug MacEachern
On Fri, 15 Sep 2000, [iso-8859-1] François Chenais wrote: Hello Using perl 5.6.0 apache_1.3.9 I 'm trying to build DSO mod_perl.1.24 = perl Makefile.PL USE_DSO=1 EVERYTHING=1 PERL_DEBUG=1 All is ok but "make test" says :

Re: Having difficulties with Tie::DBI and mod_perl

2000-09-28 Thread Doug MacEachern
On Wed, 20 Sep 2000 [EMAIL PROTECTED] wrote: PerlFreshRestartOn try turning that Off. does DBI/DBD::mysql work for you without Tie::DBI?

Re: The case of the disappearing routine

2000-09-28 Thread Doug MacEachern
On Thu, 21 Sep 2000, Chris Downes-Ward wrote: Dear all, We have a server which has a virtual server on it, this virtual server has a number of locations, one of which has a perl access handler defined, this server is a development server and is not heavily loaded. Every now and then (I

RE: Apache::Request-new() problem

2000-09-28 Thread Doug MacEachern
On Tue, 26 Sep 2000, Herrington, Jack wrote: I'm using Mason in process with mod_perl. I have also tried using mod_perl handlers direct with Apache::Request with no success. what do you see if you configure Apache::Status and open the url: /perl-status?Apache::Request ? also, any

Re: mod-perl as DSO (solaris)

2000-09-28 Thread Doug MacEachern
On Tue, 26 Sep 2000, Ricardo Stella wrote: Solaris 2.8 Apache 1.3.12 GCC 2.95.2 Perl 5.6.0 Enterprise 250 (64bitish) Modperl 1.24 I can't get modperl compiled as a DSO neither via the 'flexible-method' nor the APXS method. The first method, seg faults. The second method won't

Re: perl installation on hpux : cc vs gcc

2000-09-28 Thread Doug MacEachern
On Tue, 26 Sep 2000, Dhananjay Naniwadekar wrote: I am trying to install perl-5.6.0 on hpux. It is choosing cc as the c compiler. I don't know why. If I install an earlier version of perl, it chooses gcc. I have an env-variable named CC which is set to gcc . try Configure -Dcc=gcc

Re: Why isn't PerlSetEnv working for me?

2000-09-28 Thread Doug MacEachern
On Tue, 26 Sep 2000, Keith G. Murphy wrote: I'm running Apache 1.3.9 with mod_perl embedded, on Debian GNU/Linux. I have the following lines towards the end of my httpd.conf: PerlSetEnv PERL5LIB /usr/local/MyPerl/lib PerlRequire startup.pl Include perllocs.conf However, upon system

Re: Why isn't PerlSetEnv working for me?

2000-09-28 Thread Doug MacEachern
On Wed, 27 Sep 2000, Keith G. Murphy wrote: Upon further investigation, what I am seeing is that PERL5LIB gets passed into %ENV just fine. It's just not being used to locate modules; it is not in @INC. Could the part of Perl that pushes the PERL5LIB setting to @INC have already executed

Re: Apache::Status Memory Usage metrics

2000-09-28 Thread Doug MacEachern
On Tue, 29 Aug 2000, Lyle D. Brooks wrote: This is my first time posting to this list, so forgive me if this question has been asked before (I did not see it in the archives or in the mod_perl guide). Apache::Status seems like a nice module, but I don't understand what the Memory usage

Re: PerlAuthenHandler advice needed.

2000-09-28 Thread Doug MacEachern
On Thu, 28 Sep 2000, Todd Chapman wrote: Thanks Doug but I (and my customer) don't want to live on the CVS bleeding edge right now. Can you suggest something else? yeah, add this to httpd.conf: AuthType Basic

RE: Core file (debugging info turned on/stack trace)

2000-09-28 Thread Doug MacEachern
On Tue, 26 Sep 2000, Shane Adams wrote: Well I did a little more investigation - it seems that we are dieing in Expat.pm line 451. The offending Function is: ... is this something you can reproduce at will? if you can give me a tiny test case that i can drop and i run, i'll take a look.

Re: NOT_FOUND from a PerlHandler causing problems with ErrorDocument

2000-09-28 Thread Doug MacEachern
On 28 Sep 2000, Bjørn Ola Smievoll wrote: [Sorry for being so verbose, hope somebody still have the time and patience to read it all]. I have a setup where a PerlTransHandler registers a PerlContentHandler based simply on whether $r-uri ends with '.html' or not. The TransHandler does no

Re: Why is Apache::PerlRun a subclass of Apache?

2000-09-28 Thread Doug MacEachern
On Fri, 25 Aug 2000, Ken Williams wrote: ken, you're right, has-a relationship is the right way to go. your patch is perfect, applied, thanks!! i guess this will break some things, like Apache::RegistryLexInfo, but changes should be minimal and RegistryNG/PerlRun is still considered

Re: Apache-request($r) broken?

2000-09-28 Thread Doug MacEachern
On Thu, 24 Aug 2000, Ken Williams wrote: Hi all, It looks like setting Apache-request($r) doesn't work as documented. I can't get it to install a subclass of Apache as the request object. Here's some code in a handler: _ warn

Re: iconv/LD_PRELOAD question

2000-09-28 Thread Doug MacEachern
how about using mod_so's LoadFile directive? On Thu, 28 Sep 2000, Rajit Singh wrote: To Whom It May Concern, I have a question with regards using LD_PRELOAD (or something more appropriate) to load libiconv_plug.so and override any other iconv implementation. (Would be grateful is someone

Re: Problem with Apache::SIG

2000-09-28 Thread Doug MacEachern
On Thu, 28 Sep 2000, Bill Moseley wrote: Is there a way to make that message go away? maybe if you can give me a small example that reproduces the message. it works fine for me: shift-send_http_header; print "hi\n"; exit; print "bye\n"; nothing in the error_log. actually, the patch

Re: open - does not work

2000-09-28 Thread Doug MacEachern
On Thu, 28 Sep 2000, Vsevolod Ilyushchenko wrote: Hi, Why does this script give no output under mod_perl, but works fine from the command line: #!/usr/bin/perl -w use CGI; print CGI-header(); open (AAA, "-"); because the C level stdout is not hooked up to the client. you can

Re: PerlSendHeader Off socket persistence (was Re: question: usingApache for non-HTML messages)

2000-09-28 Thread Doug MacEachern
On Wed, 27 Sep 2000, B. Burke wrote: When I set PerlSendHeader to Off in my perl.conf it doesn't send headers, which is good. The bad part is that it seems to break socket persistence for some reason. When I have PerlSendHeader set to On, I can open a socket with my test client, and

Re: [WOT] MakeMaker

2000-09-28 Thread Doug MacEachern
try DIR = []

Re: Patch for easy testing of Apache::* modules (resend)

2000-09-28 Thread Doug MacEachern
On Mon, 17 Jul 2000, Ken Williams wrote: Hi all, Here's a resend of the Apache::test patch that I sent yesterday, this time sent as type text/plain from a Unix mailer. Rick Myers noted that the version I sent before was encoded with Macintosh BinHex, which is probably not the most

$r-user vs. $r-connection-user

2000-09-27 Thread Doug MacEachern
i've added an $r-user method as an alias to $r-connection-user, now that `user' hangs off of the request_rec rather than request_rec-connection in Apache 2.0 so by the time mod_perl-2.0 is ready to use, auth modules can work with both versions. for backwards compat you can use something like:

Re: compiling mod_perl for solaris

2000-09-27 Thread Doug MacEachern
On Fri, 1 Sep 2000, Joseph Sirucka - Netics wrote: Hi People I've been trying to compile mod_perl for solaris 8 recently and I recompiled perl 5.6.0 with _ubincompat5005 and -Uuselargefiles. But no matter what I do with with mod_perl to compile it at perl Makefile.PL blah i get this

Re: further adventures with taint

2000-09-27 Thread Doug MacEachern
On Mon, 4 Sep 2000, Michael Blakeley wrote: I've been running with AP616 and Taint On for three days now, and it seems to have fixed my problems. I hope so. I really hope so. still looking good? would be good to know if this isn't a problem on the mod_perl side :)

Re: Bug? in mod_perl when POST request yields REDIRECT

2000-09-27 Thread Doug MacEachern
On Wed, 6 Sep 2000, Reif Peter wrote: I am using a self written mod_perl module that does proxy requests. It acts as content handler and fetches the requestet documents via LWP::UserAgent. The program works fine but when the request is a POST request and the response is a redirection (301,

Re: Bug? in mod_perl when POST request yields REDIRECT

2000-09-27 Thread Doug MacEachern
take 2 on that patch, this one adds a check so ap_setup_client_block() is only called once. with this part of the fix you can call $r-content multiple times without hanging: my $data = $r-content; $data = $r-content; however, any calls to $r-content after the first will return undef. (unless

Re: Passing STDIN to subprogram

2000-09-27 Thread Doug MacEachern
On Wed, 6 Sep 2000, erich oliphant wrote: I am replacing a CGI shell script with a modperl script. At one point in the shell script subprogram is called. The HTML form that calls the script calls it via a POST. As such the params are available via STDIN. The subprogram call (which I

Re: Problems loading POSIX module

2000-09-27 Thread Doug MacEachern
On Wed, 30 Aug 2000, erich oliphant wrote: Hi, I have a script that bombs under modperl when it tries to 'use POSIX'. I get the same message when I try to preload it in the httpd.conf. Here's the error: -- [Tue Aug 29 15:59:21 2000] [error] Can't load

Re: SIGSEGV

2000-09-27 Thread Doug MacEachern
On Mon, 11 Sep 2000, [iso-8859-1] François Chenais wrote: Hello I have a Segmentation fault error with mod perl ! Any idea ? (gdb) run /opt/apache/lib/perl/WCM.pl Starting program: /usr/bin/perl /opt/apache/lib/perl/WCM.pl ... Program received signal SIGSEGV, Segmentation fault. that

Re: /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2546: redefinitionof `union semun'

2000-09-27 Thread Doug MacEachern
On Wed, 13 Sep 2000 [EMAIL PROTECTED] wrote: Hi all, I have some problems with installig mod_perl, environment: Redhat 6.1 perl 5.005_03 (i386 from RPM) mod_perl-1.24 (source) apache-1.3.12 (source) In file included from mod_perl.h:92, from mod_perl.c:67:

Re: Bad free() ignored?

2000-09-27 Thread Doug MacEachern
On Wed, 13 Sep 2000, Eamon Daly wrote: We've been using mod_perl/DBI for our entire website for just under a year now (over 1.5M pages a day-- I owe the mod_perl folks a hell of a lot of beer), and have suddenly started seeing a small number of "Bad free() ignored" lines appear in the error

Re: segfaulting httpd :(

2000-09-27 Thread Doug MacEachern
On Thu, 14 Sep 2000, Ben Turner wrote: hi all, this afternoon i compiled a fresh httpd (apache 1.3.12), together with mod_perl 1.24. i'm on Solaris 8, running perl 5.6.0. after compiling httpd, i'm getting segfaults whenever i do a normal http request. for instance: stacktrace would

Re: modperl and mutiple Servers

2000-09-27 Thread Doug MacEachern
On Wed, 20 Sep 2000, Tobias Dittrich wrote: Hi, I am running Apache Server with mutiple hosts (IP as well as name based) on a SuSe Linux 6.4 machine. Some of the hosts are running modperl scripts as well as perl scripts at the same time and they do share the same global variables (such as

Re: Core Dump on use DBI

2000-09-27 Thread Doug MacEachern
On 20 Sep 2000 [EMAIL PROTECTED] wrote: I did the same thing (static linking) and it now also works. FYI, I was using the Apache httpd out of the box from Redhat. It had been compiled with http_core, mod_so and no other modules. All modules (including mod_perl) were dynamically loaded in

Re: Can't locate object method No via package such

2000-09-26 Thread Doug MacEachern
On 25 Sep 2000, Alan E. Derhaag wrote: Good try, but /dev/null is not broken on my machine. ok, i have seen this happen at least once in the past, glad it's not a common problem. looking back now at some other mod_ssl fixes for 'make test', i'm reading that mod_ssl has some sort of problem

Re: Apache::Request-new() problem

2000-09-26 Thread Doug MacEachern
On Mon, 25 Sep 2000, Herrington, Jack wrote: I have the same problem as one of the previous reporters with Apache::Request-new(). The problem occurs whether I call it after a 'use' or after a 'PerlModule' load. Perl returns the no 'new' method could be found for Apache::Request. sounds to

Re: It just stopped work...

2000-09-26 Thread Doug MacEachern
On Tue, 26 Sep 2000, Luis 'Champs' de Carvalho wrote: [Tue Sep 26 10:50:43 2000] [error] Can't locate object method "schema" via ^ package "URI::http" at /usr/local/lib/site_perl/URI/WithBase.pm line 48. line 48 is an

Re: Value of ErrorLog directive via mod_perl

2000-09-26 Thread Doug MacEachern
On 26 Sep 2000, Bjørn Ola Smievoll wrote: I want to return the last 5 lines or so of the error_log each time there's a 500 error. The faculty and students ordinarily don't have access to the error log, so it will be helpful for them to see the last lines from the log file to help them fix

Re: question: using Apache for non-HTML messages

2000-09-26 Thread Doug MacEachern
On Mon, 25 Sep 2000, B. Burke wrote: I've been able to basically remove the response headers by removing the functionality of ap_sen_header_field() before compiling Apache, but it would be nice to you don't have to remove anything, just don't call $r-send_http_header and make sure

Re: Apache::DB in emacs

2000-09-26 Thread Doug MacEachern
On 24 Sep 2000 [EMAIL PROTECTED] wrote: Can anyone tell me if there is a way to run mod_perl's Apache::DB under emacs? there are some 'remote' hooks in the Perl debugger (perl5db.pl), but i've only heard about it, never tried, so not sure if that is a possible solution. i don't think

Re: Solution for: Re: $ENV{PATH} set by mod_perl script affectsmod_cgi scripts

2000-09-26 Thread Doug MacEachern
On Tue, 6 Jun 2000, Ben Cohen wrote: This was certainly a weird bug ( I think it was a bug ). Even setting PerlSetEnv in httpd.conf didn't help. The PATH would be properly set until the first time a mod_perl script modified its PATH at which point all other scripts including mod_cgi

Re: subprocess_env

2000-09-26 Thread Doug MacEachern
On Thu, 8 Jun 2000, Ian Kallen wrote: I'm using a third party module that writes a bunch of variables to the subprocess_env table to setup data for the request. It has us making repeated class method calls like this (for our usage with Mason): % Blah::foo('bletch') % where foo is in the

RE: PerlAddVar bug

2000-09-26 Thread Doug MacEachern
On Thu, 6 Jul 2000, Geoffrey Young wrote: I guess my expectation is that $r-dir_config('MyVar') and $r-dir_config-get('MyVar') should inherit equally, which as far as I can tell, they don't. PerlSetVar or PerlAddVar - it makes no difference. the problem is related to the

Re: dir_config and Apache::Table confusion

2000-09-26 Thread Doug MacEachern
On 26 Sep 2000, Bjørn Ola Smievoll wrote: Works for me too when PerlSetVar is inside a Location /foo, but not when it's defined outside, in the 'root' of httpd.conf. Is this how it should be? From the documentation in 'Writing Apache Modules ..' it doesn't seem like it is, at least not to

Re: Apache::DProf tip

2000-09-26 Thread Doug MacEachern
On Sat, 10 Jun 2000, Perrin Harkins wrote: Here's something that might be obvious to others but took me a while to figure out: If you want to get useful profiling information, you need to initialize the debugger before your modules get compiled. If you pull in your modules from

Re: env in background process

2000-09-26 Thread Doug MacEachern
On Mon, 14 Aug 2000, Niraj Sheth wrote: Hi, I am having very strange problem with environment variables. From Apache::PerlRun script(cgi) I am setting env and firing background process .. system("$command ") (or print `$command `;) now looks like environment variable being

Re: Multiple PerlAccessHandlers problem.

2000-09-26 Thread Doug MacEachern
On Tue, 15 Aug 2000, Trevor Phillips wrote: I'm having problems with a mix of PerlAccessHandlers. I have two handlers, and it is required that one be defined in a Location block, and the other currently in .htaccess' as required. The problem is that the one in the .htaccess is being

RE: env in background process

2000-09-26 Thread Doug MacEachern
On Tue, 15 Aug 2000, Niraj Sheth wrote: so why dump_env is getting both? If I either uncomment "local %ENV = %ENV;" in script or put "%ENV = ();" in PerlCleanupHandler then dump_env is working fine. I tried both Apache::PerlRun and Apache::Registry which same result. oh whoops, you did

Re: Strange exit error

2000-09-26 Thread Doug MacEachern
On Sat, 19 Aug 2000, Ron Pero wrote: Am running In PerlRun $ENV{MOD_PERL} = mod_perl/1.21 This is perl, version 5.005_03 built for i386-freebsd It is on iserver, which has a virtual root system Am also running dbi. When the script calls "exit", it produces an error: at

Re: Building modperl as a DSO in Apache_1.3.12

2000-09-26 Thread Doug MacEachern
On Tue, 22 Aug 2000, Kairam, Raj wrote: I am trying to build modperl ( mod_perl-1.24 ) as DSO in to Apache ( apache_1.3.12 ) on a host running HP-UX 11.0 ld: Unrecognized argument: -Wl -E ld: Usage: ld flags ... files ... The output of make is captured in the following attachment

RE: PerlAddVar bug

2000-09-26 Thread Doug MacEachern
On Tue, 26 Sep 2000, Geoffrey Young wrote: groovy - the patch seems to work just fine (you've been busy, it seems :) cool! p.s. i also just committed a change so PerlAddVar is now an ITERATE2 rather than TAKE 2, so you can say: PerlAddVar Key val-one val-two val-three that

Re: PATCH: AIX build fix for the apaci style build

2000-09-26 Thread Doug MacEachern
On Thu, 24 Aug 2000, Jens-Uwe Mager wrote: Well, I have only used the apxs DSO style build previously and did not notice that for linking modperl statically into httpd (apaci style) there are small problems due to the AIX specifix .exp file business. The following patch fixes this, in

Re: PerlModule in .htaccess (for auth) faults (possible patch forperl_config.c)

2000-09-26 Thread Doug MacEachern
On 22 Aug 2000, Andrew Gideon wrote: ... My .htaccess file contains: PerlModule Apache::TAGXSessionAuth PerlAuthenHandler Apache::TAGXSessionAuth-authen PerlAuthzHandlerApache::TAGXSessionAuth-authz After attaching to a child process and getting the

Re: Apache::DProf tip

2000-09-26 Thread Doug MacEachern
On Tue, 26 Sep 2000, Perrin Harkins wrote: On Tue, 26 Sep 2000, Doug MacEachern wrote: the Apache::DB docs explain this: The connection between Apache::DProf and calling something in Apache::DB was not obvious to me until I thought about how DProf works. yeah, i was actually surprised

Re: make tar_Apache broken?

2000-09-26 Thread Doug MacEachern
On Wed, 30 Aug 2000, Jesse Erlbaum wrote: Hey Doug mod_perl'ers! I tried to build mod_perl and use "make tar_Apache" to build a distributable tar for other same-architecture machines, without success. ... If this is correct, and not an artifact of trying to build outside of the normal

Re: Apache::ASP rand, srand and fork...

2000-09-25 Thread Doug MacEachern
On Tue, 19 Sep 2000, Joshua Chamas wrote: Perhaps I should auto init srand() then for Apache::ASP to make sure that its happening post fork? Something like if(! DONE FOR CURRENT PID) { srand(); } For reproducability within Apache::ASP, all that has to happen is someone

Re: mod_perl guide corrections

2000-09-25 Thread Doug MacEachern
On 14 Sep 2000, Joe Schaefer wrote: 2) Apache::Request is better than your performance numbers indicate. The problem I have with your comparison with Apache::args vs Apache::Request vs CGI is that your benchmark code isn't fair. You're comparing method calls against hash-table lookups,

Re: Value of ErrorLog directive via mod_perl

2000-09-25 Thread Doug MacEachern
On 15 Sep 2000, Bjørn Ola Smievoll wrote: I need to retrieve the value of the ErrorLog directive (i.e. the path filename of the error_log), but I can't find a way to do it with mod_perl. (The C api equivalent is the error_fname field in the server_rec struct). this patch should work. can

Re: usemymalloc mod_perl

2000-09-25 Thread Doug MacEachern
On Sat, 16 Sep 2000, Ian Kallen wrote: I've seen some of the 'perl -V' outputs on this list over the years. Most people have usermymalloc=n but I've a seen a number of Solaris cases that have usemymalloc=y I have a system on Solaris 2.6 with usemymalloc=y and I have a very infrequent

Re: dir_config and Apache::Table confusion

2000-09-25 Thread Doug MacEachern
On 21 Sep 2000, Bjørn Ola Smievoll wrote: If I do this: $r-print($r-dir_config('key')); Then key is printed. If I then do this: my $tab = $r-dir_config; $r-print(Dumper($tab)); # Using Data::Dumper I get '$VAR1 = bless( {}, 'Apache::Table' )'; It's empty, how come?

Re: open(FH,'|qmail-inject') fails

2000-09-25 Thread Doug MacEachern
On Mon, 25 Sep 2000, Stas Bekman wrote: All you care about is to measure the time between email sending start and end (when the process continues on its execution flow). Why should one care about the details of internal implementation. i only skimmed the first part of this thread, but

Re: mod_perl IfModule directives?

2000-09-12 Thread Doug MacEachern
On Tue, 12 Sep 2000, Matt Sergeant wrote: I know this isn't in mod_perl yet, so take this as a feature request :-) really, how do you know that? ;) What I'd like to see is a mod_perl equivalent of IfModule, so that I can add custom config directives to my httpd.conf perfectly safely:

Re: modperl startup dumps core; trace included

2000-09-12 Thread Doug MacEachern
On Mon, 11 Sep 2000, Bruce W. Hoylman wrote: I have a peculiar problem with a modperl module I have written. When migrating to the following configuration: perl, v5.6.0 built for sun4-solaris modperl_2911162240 (1.2401) apache-1.3_2911161201 If

RE: Core dumping

2000-09-11 Thread Doug MacEachern
On Sat, 9 Sep 2000, Shane Adams wrote: #7 0x80894de in XS_Apache_finfo (cv=0x8207410) at Apache.xs:1844 i haven't tried to reproduce this, but suspect a bug in $r-finfo which the patch below should workaround. --- lib/HTML/Mason/ApacheHandler.pm~Thu Aug 24 22:42:51 2000 +++

Re: Memory leak hell...

2000-09-11 Thread Doug MacEachern
On Sun, 10 Sep 2000, Matt Sergeant wrote: For 2 days solid now I've been trying to track down a very bizarre memory leak in AxKit. I've checked everything I can think of - all circular references are now gone, all closures clean up carefully after themselves, and I've reduced the usage of

Re: PerlCleanupHandler

2000-08-31 Thread Doug MacEachern
On Fri, 11 Aug 2000, Tim Sweetman wrote: I've seen something similar - when the client browser times out, execution seems to stop mid-Print statement, and mod_Perl gets ready for the next request, without cleaning up objects present (or, at least, without calling -DESTROY). this should be

Re: $r-notes with slashes

2000-08-31 Thread Doug MacEachern
On Mon, 14 Aug 2000, Andrew Fuqua wrote: I'm trying to pass a path name with slashes as the value of a note, and when I try to retrieve the note from another handler in the same request, the note is not there. Code goes like this: in a PerlInitHandler: $r-notes('dir_name' =

Re: [ID 20000818.003] mod_perl Apache::Symbol::undef() is deprecated

2000-08-31 Thread Doug MacEachern
On Wed, 30 Aug 2000, Brian S. Craigie wrote: [Thu Aug 17 20:23:37 2000] [error] Can't locate auto/Apache/Symbol/undef.al in @INC (@INC contains: ... /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5 to upgrade to perl 5.6.0 you

Re: Apache.xs patch for get_client_block

2000-08-31 Thread Doug MacEachern
On 31 Aug 2000 [EMAIL PROTECTED] wrote: The mod_perl implementation of get_client_block has a memory leak. The following patch should keep it from from pissing in r-pool. thanks joe. i don't see how allocating from r-pool is a "leak", but yeah, it is a waste of resources since Perl is going

Re: Apache.xs patch for get_client_block

2000-08-31 Thread Doug MacEachern
On 31 Aug 2000 [EMAIL PROTECTED] wrote: Doug, Sorry to belabor a dull issue, but I'm not sure I'm getting my point across. no problem, this is important stuff to understand. Most of the troubles I've run across in the mod_perl and libapreq code have to do with attempts to allocate

Re: mod_perl for Apache to work with ActivePerl (APR#816)

2000-08-31 Thread Doug MacEachern
On Fri, 25 Aug 2000, Gurusamy Sarathy wrote: mod_perl apparently doesn't know anything about ithreads. This patch makes it build and "work" for me, but I haven't tested it for more than 20 seconds. It is possible that similar treatment is needed for other callbacks that my 20-seconds

Re: Build problems on Solaris

2000-08-30 Thread Doug MacEachern
On Thu, 10 Aug 2000, Paul Breslaw wrote: I cannot get mod_perl to pass 'make test' on Solaris (5.5.1). I've tried different versions of mod_perl (1.18, 1.21_03 and 1.24) and different versions of Apache (1.3.4, 1.3.12) all against the same version of perl 5.004_04 (gcc). I used the

Re: Apache::Registry spawning zombie shells?

2000-08-30 Thread Doug MacEachern
On Tue, 22 Aug 2000, martin langhoff wrote: hi list, while doing a silly thing (building a set of HTML files with info from a DB file), I found that while the apache server was being crawled by lwp-rget, a lots of zombie shells were being spawned and killed. sh -c /bin/csh -cf

Re: 'make test' error with CVS modperl

2000-08-30 Thread Doug MacEachern
On Tue, 22 Aug 2000, Bruce W. Hoylman wrote: Having downloaded the latest CVS snapshot of modperl, using my standard APACI config parameters to configure and compile, it compiles to completion without error. 'make test' however returns the following error when attempting to start the test

RE: env in background process

2000-08-30 Thread Doug MacEachern
On Wed, 23 Aug 2000, Sheth, Niraj wrote: Didn't get any reply yet on this, so I think i am doing something very stupid ... i'm still catching up with plenty of unanswered mail in my modperl mailbox, including yours, doing the best i can.

Re: Apache::Config

2000-08-30 Thread Doug MacEachern
On Thu, 24 Aug 2000, Stas Bekman wrote: Is it just me or has there been discussionof something along the lines of Apache::Config here before? Where might I accquire it? I could not find it on CPAN... It will appear in mod_perl-2.0 for sure, and it's on the todo list of mod_perl-1.x, so

Re: Patch to t/modules/request.t

2000-08-30 Thread Doug MacEachern
this thread is pretty large, i'm sure the fix is nice and small, anybody have a patch with the final solution? thanks.

Re: PerlCleanupHandler

2000-08-30 Thread Doug MacEachern
On Wed, 9 Aug 2000, Michael Peppler wrote: Hi, We're seeing a number of requests where the write from apache to the client browser times out and the SIGALRM signal fires. Our Apache::Registry scripts in that case don't clean up correctly, leaving session lock files around, which of course

Re: Patch to t/modules/request.t

2000-08-30 Thread Doug MacEachern
On Thu, 31 Aug 2000, Ken Williams wrote: [EMAIL PROTECTED] (Doug MacEachern) wrote: this thread is pretty large, i'm sure the fix is nice and small, anybody have a patch with the final solution? thanks. Sounds so ominous... =) didn't mean it to, i'm just buried and looking for any

Apache::Icon fix

2000-08-21 Thread Doug MacEachern
with the patch below, Apache::Icon/Apache::AutoIndex works fine for me. running apache_1.3.13-dev, mod_perl-1.24_01-dev, perl-current (5.7.0-dev) mod_perl built with EVERYTHING=1, USE_DSO=1 copy-n-pasted config from Apache::AutoIndex/README: PerlModule Apache::Icon PerlModule

Re: cgis and subrequests

2000-08-21 Thread Doug MacEachern
On Sun, 20 Aug 2000, Alex Menendez wrote: unfortunately, I am not entirely sure what a cgi is going to output all the time. The cgi might try to do a redirect using the Location field. Therefore, I don't think I can simply send_http_headers as type text/html... right, my $lookup =

Re: send_http_header and subrequests

2000-08-21 Thread Doug MacEachern
On Wed, 14 Jun 2000, Paul J. Lucas wrote: The second example on p. 128 of the Eagle book sets the content type and send the HTTP headers itself before running a subrequest. However, on p. 468, the documentation for the run() method says in part:

Re: httpd.conf directive PerlHandler Apache::Hello-handler errors

2000-08-21 Thread Doug MacEachern
On Thu, 10 Aug 2000, Ken Williams wrote: To clarify - some handlers can be called using object-oriented techniques, and some can't. The switch for this behavior is that the handler is prototyped with ($$). or with newer Perls: sub handler : method {...}

Re: Cant set args to $r-arg(undef);

2000-08-21 Thread Doug MacEachern
On Sun, 13 Aug 2000, Greg Cope wrote: Dear All Although this in no longer important to me, I cannot appear to reset $r-arg to an empty value. i think i already mentioned (but this message is not marked as replied), this is fixed in cvs.

Re: my transhandler runs only once in each child ?!?

2000-08-21 Thread Doug MacEachern
On Mon, 14 Aug 2000, Matt Sergeant wrote: On Sun, 13 Aug 2000, Greg Cope wrote: Apache-push_handlers("PerlTransHandler", \transhandler); push_handlers is temporary, not permanent. And this line only gets executed once. of course, if you wanted something like that, your module (if

Re: Errors from Apache.pm

2000-08-21 Thread Doug MacEachern
On Wed, 16 Aug 2000 [EMAIL PROTECTED] wrote: All, I am seeing the following errors in my apache error log. These have appeared since moving to a Linux/mod_perl1.24 combination (from NT/1.23) so I don't know if they come from 1.24 or from the -w switch being handled

Re: mod_perl-1.24 - Make FAILS!

2000-08-21 Thread Doug MacEachern
On Thu, 17 Aug 2000, Stephen Marriott wrote: /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2546: redefinition of `union semun' Perl version 5.005_03 built for i386-linux (2.0.36) this problem has been reported in the past, upgrading to a newer kernel has cured.

Re: Anyone get Apache::PerlVINC to work?

2000-08-21 Thread Doug MacEachern
On Sat, 19 Aug 2000, Stas Bekman wrote: On Fri, 18 Aug 2000, Tom Lancaster wrote: I get the behaviour described in the BUGS section of the docs: server silently fails to start. However, I'm using the latest version of Apache::ExtUtils, as recommended. Also using mod_perl 1.22,

Re: cgis and subrequests

2000-08-21 Thread Doug MacEachern
whoops. yeah, $subr-send_http_header won't work for the same reason send_http_header() calls within run() do not. you'll just need to propagate subrequest info like so: my $subr = $r-lookup_uri($uri); $r-send_http_header($subr-content_type); $subr-run;

Re: Anyone get Apache::PerlVINC to work?

2000-08-21 Thread Doug MacEachern
On Mon, 21 Aug 2000, Tom Lancaster wrote: Doug MacEachern wrote: the suggestion was to upgrade Apache::ExtUtils (to cvs version, w/ bug fix), which generates PerlVINC.xs. Where can I find this? % perldoc mod_perl_cvs

Re: cgis and subrequests

2000-08-21 Thread Doug MacEachern
On Mon, 21 Aug 2000, Alex Menendez wrote: ok, what about cgi's that generate Location: headers. Am I out of luck here? should I contemplate changing src for ap_run_sub_req doh, right, headers are not added until run(). no need to change ap_run_sub_req, we can support this. with the patch

RE: $r-get_handlers bug/oversight?

2000-08-21 Thread Doug MacEachern
On Wed, 16 Aug 2000, Geoffrey Young wrote: ack... so the alias only goes one way? I guess it makes sense that we can't know at run time what the Init handler stands for, but how come get_handlers('PerlInitHandler') comes up blank? Isn't it just a table entry? it's not in the get/set

Re: cvs snapshots

2000-08-17 Thread Doug MacEachern
On Thu, 17 Aug 2000, Eric Cholet wrote: We no longer have cvs snapshots in http://dev.apache.org/from-cvs/ There's only httpd in there. (we link to this from http://perl.apache.org/distributions.html) i guess we should change it to: http://perl.apache.org/from-cvs/

Re: Seg fault (11) backtrace (long email) - was RE: does anyone havea fix for this?

2000-08-16 Thread Doug MacEachern
On Thu, 3 Aug 2000, Jamie Krasnoo wrote: Program received signal SIGSEGV, Segmentation fault. 0x8086ef0 in perl_handler_ismethod () yes, cvs should fix this, here's the diff: --- mod_perl.c 2000/05/25 18:06:23 1.121 +++ mod_perl.c 2000/06/02 17:23:07 1.122 @@ -1222,7 +1222,7 @@

Re: [OT]SegFaults, not PerlFreshRestart or module related

2000-08-16 Thread Doug MacEachern
On Mon, 19 Jun 2000, Paul wrote: I'm running out of ideas. PerlFreshRestart was completely unused, then explicitly set Off. I have two handlers, which seem to work well. My logs report nothing amiss aside from the stream of segmentation faults killing off my server children, usually

Re: Yet more on set_handlers() and new-found problems with lookup_uri()

2000-08-15 Thread Doug MacEachern
i think the jist of the problem(s), is that set_handlers() modifies the configuration structure (the one created at startup from httpd.conf), so any subrequests will end up with the modified structure (which is not reset until the end of the request). this patch implements {get,set}_handlers in

Re: Pinning down panic: POPSTACK

2000-08-15 Thread Doug MacEachern
On Wed, 28 Jun 2000 [EMAIL PROTECTED] wrote: The modperl archives are pretty clear that panic: POPSTACK errors caused by dies called in a eval is a perl bug. The archives are also clear that this is often a result of an interaction with Apache::Session, which I *was* getting, but have

Re: Totally trivial patch

2000-08-15 Thread Doug MacEachern
On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote: Hi Doug, I was trying to figure out how to hide part of the URL of an $r-custom_response from the user and I found this... It's real trivial, does that matter? not at all, more than welcome, thanks. I assume that if (*string == '/')

Re: $r-get_handlers bug/oversight?

2000-08-15 Thread Doug MacEachern
On Tue, 25 Apr 2000, Geoffrey Young wrote: Hi all... I've noticed that get_handlers() will return the enabled handlers for a PerlPostReadRequestHandler, but not when it is specified as a PerlInitHandler (either by calling $r-get_handlers('PerlPostReadRequestHandler') or

Re: $r-set_handlers behavior?

2000-08-15 Thread Doug MacEachern
On Wed, 26 Apr 2000, Geoffrey Young wrote: good morning... I'm a bit confused about $r-set_handlers and $r-push_handlers behavior. Both are listed in the eagle book as being per-request methods, but man Apache lists them both as server configuration directives. I think, though, that I'm

<    1   2   3   4   5   6   7   8   9   >