perl/48561#48561
I'd hate to lose the use of this module :)
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
the first time I've come across a source filter - looks like a
really cool technique.
thanks for that
____________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
(2001) which
highlights the issues, the link is :
http://aspn.activestate.com/ASPN/Mail/Message/modperl/528982
> Clinton Gormley [EMAIL PROTECTED]
>
> www.TravelJury.com - For travellers, By travellers
>
>
>
>
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
$! for the reason).
Also, look at : perldoc perlfaq8, starting with the question :
"Why canĂ¢t I get the output of a command with system()?"
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
ist, but it isn't documented in the Apache::Cookie docs.
This is a change from how it worked in modperl 1.
____________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
e, you're just specifying the
default database.
____________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
> I don't know it's even possible in mysql. Its reference docs doesn't say
> that it is (http://dev.mysql.com/doc/mysql/en/join.html).
>
Yes it does :
http://dev.mysql.com/doc/mysql/en/identifier-qualifiers.html
_____
abase, you need
to let perl know that the data is unicode, as it doesn't detect it
itself.
____________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
nts, thereby avoiding character set issues.
Or use HTML::Entities
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
re of your application in order to do it!
What are the experiences/opinions of using these modules under mod_perl
2 on high traffic sites?
thanks
clint
____
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For traveller
On Mon, 2005-11-14 at 09:36 +0100, Tom Schindl wrote:
> I'm uncertain what you are telling here because I can use different
> databases while connected in a connection using the
>
> 1. Connect 2 DB (e.g. test)
> 2. Query: SELECT * FROM db1.tab1
> 3. Query: SELECT * FROM db2.tab1
>
> So there's no
o?
Any advice/best-practices/pitfalls greatly appreciated.
thanks
Clint
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
On Fri, 2005-12-16 at 17:26 +1300, Jon Keller wrote:
> Thanks Tyler,
>
> Unfortunately this wont fix my issue as my apache processes seg fault no
> matter what type of file I request, whether its a mod_perl script, an
> html file, or just a directory listing, if mod_perl is loaded apache seg
>
On Mon, 2006-01-23 at 08:58 -0700, Pete Alvin wrote:
> When I try to run PerlSwitches "-Ic:/ps" I get:
>
> 'PerlSwitches' is not recognized as an internal or external
> command, operable program or batch file.
>
> If you mean to add those switches to the Perl command, it goes back
> to my
; if $Apache::DBI::DEBUG > 1;
+%Connected = ();
+0;
+}
# The PerlCleanupHandler is supposed to initiate a rollback after the script
has finished if AutoCommit is off.
# Note: the PerlCleanupHandler runs after the response has been sent to the
client
Any reason why this is bad?
____
ildInitHandler => \&childinit);
@@ -188,6 +184,7 @@
sub childinit {
my $prefix = "$$ Apache::DBI";
print STDERR "$prefix PerlChildInitHandler \n" if $Apache::DBI::DEBUG > 1;
+%Connected = ();
if (@ChildConnect) {
for my $aref (@ChildConn
On Sat, 2006-01-28 at 21:24 -0500, Michael Peters wrote:
>
> Jonathan wrote:
> >
> ]> no matter what i do though, i can't seem to kill the config
> > connection. it just kinda sits there and apache::dbi won't clear it.
> > annoying.
>
> It's because Apache::DBI overrides disconnect() to make
> Apache::DBI doesn't cache handles that you open during startup or
> prevent you from calling disconnect on them. If you have it loaded
> correctly and you don't call disconnect on handles opened in startup,
> you should see warnings about the handles being DESTROYed without
> disconnect. If yo
27;t work because it had already
passed the PostConfig phase.
____________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
On Tue, 2006-02-07 at 07:03 -0500, Mark Galbreath wrote:
> Apache 2.1 does not recognize in httpd.conf. Does this have
> something to do with it's mod_perl autoload feature?
>
> mark
It probably has more to do with the fact that it should be , not
clint
st::Param/Cookie/Apache2 which
do what I need. Should I be concerned about the API changing
dramatically in future releases? Is the API of the APR modules more or
less stable than the Apache2:Request modules?
thanks
Clint
________
It seems to me that a lot of people new to mod_perl and to Perl have
joined this mailing list recently.
And this is during a period when popular opinion (amongst those who know
no better) seems to regard Perl as antiquated.
I'm delighted that new people are joining.
My question is, what prompted
>
> At the office, installing ActivePerl just annoyed the sysadmins
> because it didn't really break anything but I found myself in the
> position of begin able to take advantage of some pretty cool modules
> (like IO::ALL, e.g.) that have been upgraded or designed for 5.8 when
> the infrastruct
On Fri, 2006-02-17 at 19:08 +0100, Daniel McBrearty wrote:
> Frank, what's the light/heavy approach?
>
http://perl.apache.org/docs/1.0/guide/scenario.html#One_Plain_and_One_mod_perl_enabled_Apache_Servers
>my %params = $r->method eq 'POST' ? $r->content : $r->args;
Why not parse both and merge them?
But I would just use Apache::Request or CGI - they work, the authors
have thought of things that we wouldn't, etc...
It should be easy to replace the part of your code which reads in the
get/post
Am I missing something here. Can PerlCleanupHandlers be setup at
startup with :
Apache2::ServerUtil->server->push_handlers(PerlCleanupHandler=>\&cleanup);
I have successfully got a cleanup handler working using:
- PerlCleanupHandler My::Package (in the config file), or
- $r->push_handler
> it ought to work, but it should be setting a per-server cleanup instead of a
> per-request cleanup. see below.
>
Doh!
> basically cleanups are performed when memory allocated for different parts
> of the server lifecycle is destroyed. so, httpd allocates memory for the
> server, per-config
> This revelation of how Perl does not free up memory it allocates is
> worrying, especially as I do process large documents regularly.
>
> If I read you right, you are saying that $r->child_terminate will force
> the current thread to terminate, causing Apache to create a new thread.
> Is that
> (a) Create a database cursor and page through it
> (b) Repeat the query (making sure there is a sort criterium) at each
> page request, starting at a variable offset and limiting the
> result set
> (c) Do the whole query at once, putting the results in some kind
> of array.
>
> same
On Sun, 2006-04-09 at 13:45 -0400, Jonathan Vanasco wrote:
> On Apr 9, 2006, at 5:02 AM, Kevin A. McGrail wrote:
>
> > I'm under the impression that this is the same as SELinux
> > (http://www.nsa.gov/selinux/info/faq.cfm)
>
> SELinux is at the kernel level + a few libraries, and from what i
>
> On Thu, 2006-05-25 at 19:18 -0400, Jonathan Vanasco wrote:
> > closing read-only connections opened / closed at startup
>
> Connections opened during startup shouldn't be persisted by Apache::DBI.
> Maybe you've found a bug.
>
There is indeed a bug under Apache 2 - I submitted a patch for this
On Thu, 2006-06-01 at 12:59 -0400, Garrison Hoffman wrote:
> I've tried numerous variations, but can't get POST_MAX to work properly.
> Everything works fine without it.
>
> my $POST_MAX = 1024*1024*10;
> my $req = Apache2::Request->new($r, POST_MAX => $POST_MAX);
>
> The error log tells me on
Hi Tom
Here's the install script that I walk through to install Apache 2,
mod_perl 2 and libapreq. Done it on a number of machines including
redhat, and it works for me.
You may get errors along the way because of missing libraries. Just
install them and repeat the last step.
It installs apach
/perl5/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
:
PerlOpenLogsHandler startup.pl
Help appreciated
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
On Mon, 2006-08-14 at 11:08 +0200, Clinton Gormley wrote:
> I am trying to configure virtual hosts dynamically in mod_perl2.
I figured out what I was doing wrong, so I thought I'd document it,
because it took me so long to figure out.
According to
http://httpd.apache.org/docs/2.2/mod/c
onfig("ProxyPass /users/ http://$map{$hostname}/users";);
>
clint
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
And if -Dfast is set, then only do the setup when restart_count!=1
many thanks
clint
____
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
> Thats possibly because STDERR isn't tied to anything yet. There's
> some black magic that seems to go on.
That's correct
http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlConfigRequire_
I knew that was the case, it just interferes with the behaviour that I
would like.
I think I
On Fri, 2006-08-18 at 12:24 +0200, Andreas Rieke wrote:
> Hi,
>
> The strange thing is that all the memory is gone even after stopping all
> apache processes.
> The only thing which helps is to reboot the machine.
>
Hi Andreas
Not my field of expertise, but this sounds like a kernel problem, o
On Tue, 2006-08-29 at 15:20 -0300, Adriano Ferreira wrote:
> Hi, mod_perl people.
>
> I am preparing a presentation about technologies which make Perl more
> visible. In this vein, I would like to say a few words about mod_perl.
> But I am short of knowledge on this subject and need to understand
On Wed, 2006-09-20 at 08:12 -0700, Dave Viner wrote:
> Hi,
>
> I'm trying to set a special Perl handler for the "homepage" or index
> page of a site. A directive like:
>
>
> SetHandler perl-script
> PerlResponseHandler Cool::Handler
>
>
> causes a
sh the vector
Now this is an interesting one... How would you avoid this? Only take
parameters from the POST data? Any other ideas?
Clint
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJ
> Users:
> * switch off Javascript (and any other active content)
> * avoid pages unusable without active content
>
> Developers:
> * always offer working alternatives to active content (page
> must be usable with no JS, no Java, no Flash (I won't talk
> about other client-side monst
> That's part of it, but it's not a complete solution.
>
> That particular attack vector is called CSRF, cross-site request
> forgeries. RSnake's XSS cheatsheet demonstrates using XSS on your own
> site to launch the attack, but it can also be launched from any other
> web site where your users v
On Fri, 2006-10-06 at 18:48 +0200, Hendrik Van Belleghem wrote:
> "mock" talked about XSS at this years YAPC::Europe in Birmingham a few
> weeks ago. He had quite a few examples. His slides are at
> http://sketchfactory.com/static/mvc.pdf (More Vulnerable Code).
> It goes without saying that it wou
> HTML::Scrubber is not really broken. The problem is that the
> documentation leads the user to do broken things, as was shown with
> Planet Plagger. It is possible to make a secure HTML::Scrubber config,
> but you need to default deny everything and then only allow a select
> list of tags and
ew it as HTML,
escaping isn't sufficient. The combination is required.
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
On Sun, 2006-10-22 at 12:48 -0400, Jonathan wrote:
> I started supporting 400/403 errors in a mod_perl handler for an API
> on my projects
>
> I ran into this odd little issue:
>
> With this line:
> DEBUG_STATUS && print STDERR ("\n status-> " . $r->status() . ' |
> ' . Apache2::Const::
what error is the open giving?
> open (LOGFILE, ">>junk.log") ;
open (LOGFILE, ">>junk.log")
or die "Couldn't open junk.log for appending : $!";
Also, it may be that somewhere LOGFILE is defined as a constant, and so
the bare filehandle LOGFILE is being interpreted as LOGFILE()
Rather use
The IBM article was where I read about it, but it doesn't help me with
debugging mod_perl
On Tue, 2006-11-14 at 11:43 -0500, [EMAIL PROTECTED] wrote:
> There's a how-to from IBM check out:
>
> http://www-128.ibm.com/developerworks/edu/os-dw-os-epic-i.html
>
> Also, here's a link from the EPIC so
hanks
____
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
On Fri, 2006-12-08 at 21:27 -0800, Octavian Rasnita wrote:
> Hi,
>
> Do you know if there is a .ppd version of ModPerl 2.03 for Windows available
> somewhere?
http://cpan.uwinnipeg.ca/dist/mod_perl-2.0
________
Cli
>
> The man page then says to use APR::Request::Cookie I should:
> my $jar = $r->jar;
> my $cookie = $jar->get("ISMH_SESSION_ID");
What is $r in this case? It should be an APR::Request::Apache2 or
(APR::Request::CGI I think) handle.
So, where $r is an Apache2::RequestRec object:
To set:
-
On Sat, 2006-12-09 at 09:37 -0500, cfaust-dougot wrote:
> Thanks for the reply Clinton, I was just using the same request obj
> from the handler, guess that was wrong :)
>
> I tried your read example and now I don't get anything at all (even
> though I can see the cookie on the machine)
What do
was as easy as using it :) - Back to
> the drawing board!!
>
> Thanks
> -Chris
>
>
>
> __
> From: Clinton Gormley [mailto:[EMAIL PROTECTED]
> Sent: Sat 12/9/2006 10:00 AM
> To: cfaust-dougot
> Cc: modperl@perl.apache.org
> Subject: RE: Apache2::Cookie/APR::Reque
>
> Can I ask if there is something different when redirecting? It would
> appear the cookie isn't being sent in a redirect.
It should be fine setting cookies in a redirect as long as
1) you're using $r->err_headers_out->add()
2) you're not doing an internal redirect
so, for instance, this se
nfused.
>
>
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
hing like:
use Apache2::Const -compile => qw(OK DECLINED HTTP_MOVED_PERMANENTLY..);
> I'm using mod_perl-2.0.2 and apache-2.0.58. Any ideas?
>
> - Grant
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
.
>
> - Grant
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
ld be called
while your server is busy doing something else, and the two actions
collide.
clint
>
> - Grant
________
Clinton Gormley [EMAIL PROTECTED]
www.TravelJury.com - For travellers, By travellers
On Mon, 2007-01-15 at 00:49 +0530, abhishek jain wrote:
> Hi friends,
> i need to know that if i add the following block then will it affect
> anything in the execution of modperl apart from first time run.
> BEGIN{
> require'abc.pl';
> require'large_file.pl';
>
> };
>
> I mean anything relative
> Just change the signal handler.
>
> $SIG{__WARN__} = $SIG{__DIE__};
Or to do it lexically:
use warnings FATAL => 'all';
On Sun, 2007-02-04 at 11:37 +0200, Octavian Rasnita wrote:
> Ok, I think I understand.
> I use last_insert_id() right after making the insert and store it into a
> variable and usually I just need to insert some records in another table
> right after this, but then I won't need it anymore, so I d
On Wed, 2007-02-14 at 14:57 +, Carl Johnstone wrote:
> Hi,
>
> I'm moving to mod_perl2 and looking at the new startup where perl can be
> loaded either pre-config or postconfig. I've been trying both options.
>
> If I start perl pre-config, I'm getting output from the perl stuff to the
> sc
ipt or
using mod_perl (example in the README)
If you find any issues or can suggest any improvements (for instance, a
better example of using it with mod_perl?), please send them to me -
I'll be happy to fix them.
Clinton Gormley
> we are exploring the idea of writing medium to large
> Perl apps in the future which will require mod_perl.
> the current environment is apache 1.3. having read
> modperl's doc and i am concerned about running
> multiple unrelated mod_perl apps on one server, such
> as 2 or 3 medium Perl apps. (
I recently got this error message:
Apache2::RequestIO::print: (104) Connection reset by peer at .
from the code:
$r->print($data);
I understand why, but it raised two questions:
1) What is the difference between connection reset and connection
aborted
2) What return code should I
> thanks! I actually have an example of this. A module
> for event logging purpose. the global variable is a
> hash consists a set of default log flags corresponding
> to log messages.
>
> i can register a new flag/msg to the global variable
> in my app and go on with the logging. a simplified
>
On Thu, 2007-03-29 at 17:31 -0400, Jonathan Vanasco wrote:
> On Mar 29, 2007, at 1:01 PM, Perrin Harkins wrote:
>
> > Apache::DBI handles this for you. It checks if you are connection
> > during startup and does not make your connection persistent if you
> > are.
>
> is this new-ish ( like withi
I may have missed your reply somewhere in the thread, but Robert Landrum
asked the question about whether this happens only in children that have
respawned, and I haven't seen you comment about it.
It may be worth adding a call to Apache2::ServerUtil::restart_count()
into the debugging statement.
> I think I remember saying that so far I've only been testing after
> graceful restarts (so what I would assume u call respawned children).
Again, this may be COMPLETELY unrelated, but I've had some serious
issues with graceful restart and stop in apache 2.2 / 2.4
With graceful restarts, I get
I realise that you're probably not using template toolkit, but on a
separate but related note:
For those on the list using Template Toolkit, if your templates contain
UTF8, you need to prefix them with a UTF8 BOM for them to be recognised
as UTF8, otherwise TT gets really confused.
See here for m
On Thu, 2007-04-12 at 23:42 -0400, Perrin Harkins wrote:
> On 4/12/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote:
> > The mod_perl guide section on starting and stopping (http://
> > perl.apache.org/docs/general/control/
> > control.html#Safe_Code_Updates_on_a_Live_Production_Server)
> > recommends
> r is Apache2::RequestRec=SCALAR(0x98d2108)
> I was given ' Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml"; xml:lang="en-gb"
> lang="en-gb">
>
> '
>
> So, the perl code is using an Apache2::RequestRec object to print out
> the he
t; about the special characters?
>
> I'll get Firefox now.. :)
>
> Thanks
>
> Mick
>
> -Original Message-
> From: Clinton Gormley [mailto:[EMAIL PROTECTED]
> Sent: 16 April 2007 10:28
> To: michael watson (IAH-C)
> Cc: modperl@perl.apache.org
> Subject: R
On Mon, 2007-04-16 at 11:12 +0100, michael watson (IAH-C) wrote:
> That does indeed make the HTML headers come through, however, I get
> about 20 "Content-type: text/html" lines in my web page because that
> print function is used to print out ALL HTML, not just the headers.
Then just print the he
On Mon, 2007-04-16 at 11:49 +0100, michael watson (IAH-C) wrote:
> Hi
>
> Thanks for all your help. If I print out the header line myself, before
> anything else is printed out, then for some reason none of the images
> are produced. Images are produced dynamically using perl and GD. If I
> lea
> switch to a lightweight proxy + httpd on port 80. i like nginx
> because its had much fewer critical bugs than lighttpd. others like
> lighty. either will be fine - they'll free up apache to deal with
> content generation and you'll see a ginormous performance boost off
> that .
>
>
> Content-type: text/html
> Software error:
> Storable binary image v2.7 more recent than I am (v2.6) at
> ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al)
> line 323
>From the Storable.pm POD:
files from future versions of Storable
Earlier
On Mon, 2007-04-23 at 04:17 -0500, Deepak Mallya wrote:
> Hi,
> I did install the latest Storable.pm and included using
> use lib
> "/home/002/d/dp/dpm052000/public_html/cgi-bin/Storable-2.16/blib";
> I get an error when I use $index=retrieve('filename');
> Is somehting wrong in the
> Add this to your CGI script:
>
> warn $INC{Storable.pm};
change that to:
warn $INC{'Storable.pm'};
otherwise it'll break under use strict;
>
> and I bet you that the path that it prints to your error log is not the
> one to your home directory.
What you could try doing in this case (I as
On Mon, 2007-04-23 at 04:48 -0500, Deepak Mallya wrote:
> Clinton,
> I tried it ..It gives me this at the line I added warn.
> Warning: something's wrong at newprocessquery.pl line 24.
> Undefined subroutine &main::retrieve called at newprocessquery.pl line
> 25.
>
> I tried printing @INC after
hread-multi/
Then use THAT directory in your perl script:
use lib '/home/yourname/lib/perl5/5.8.8/x86_64-linux-thread-multi/';
Hope this helps
Clint
>
> On 4/23/07, Clinton Gormley <[EMAIL PROTECTED]> wrote:
> On Mon, 2007-04-23 at 04:48 -0500, Deepak M
Just a follow up to my previous announcement.
The TinyMCE perl compressor now has a permanent home:
http://hacks.traveljury.com/perl_compressor
any bugs to me: [EMAIL PROTECTED]
About
TinyMCE Compressor gzips all javascript files in TinyMCE to a single
streamable file. This makes the overall do
> code, it's own CSS , it's own images! There should be a well
> established usage pattern so someone just downloads the grid module,
> run the installer and it puts all the files in 'right' places.
> Of course, it's not possible currently since everyone has a different
> framework and different
On Thu, 2007-04-26 at 09:27 +0200, Denis Banovic wrote:
> Hi Clint,
>
> Thank you for making this possible, it works just fine under Firefox!
Hi Denis
Thanks for your thanks. I don't want to hijack the mod_perl list, so if
anybody else has further queries / bugs, please send them to me
directly
> -Original Message-
> From: Martin Moss [mailto:[EMAIL PROTECTED]
> What I would like to do is test if $string contains one of the patterns
> in the pattern match and then carry out a function based upon which
> pattern is matched...
> Any ideas?
>
>
> perldoc perlre [look for Backtrac
On Fri, 2007-04-27 at 09:43 +0200, Alicia Amadoz wrote:
> Hi,
>
> [error] \n- EXCEPTION: Bio::Root::Exception
> -\nMSG: Can't locate Apache/SubProcess.pm in @INC ()\n
> BEGIN failed--compilation aborted at (eval 47) line
> 2.\n\nApache::SubProcess module required for r
On Fri, 2007-04-27 at 10:19 +0200, Clinton Gormley wrote:
> On Fri, 2007-04-27 at 09:43 +0200, Alicia Amadoz wrote:
> > Hi,
> >
>
> > [error] \n- EXCEPTION: Bio::Root::Exception
> > -\nMSG: Can't locate Apache/SubProcess.pm in @INC (..
On Fri, 2007-04-27 at 11:46 +0200, Alicia Amadoz wrote:
> Ok, I would try it but where should I write that code? maybe at the
> startup.perl file?
>
> Thanks,
> Alicia
No, you need to find the Bio::DB::WedbDBSeqI module and edit that.
>
> > On Fri, 2007-04-27 at 10:1
>I haven't tired this, but don't see why it wouldn't work. Can't
>you just do:
>
>$ENV{'foo'} = 'bar';
>
>in your startup.pl?
Works for me
> Ok. that answers a ton.
>
> Word-for-word, that should be in the PerlGlue docs.
>
libapreq is great, but the docs are seriously lacking.
I implemented my own wrapper for it, but it required a lot of delving
into the Apache2/APR::Request code to figure out how to make it work.
Non-trivial to
> That's not really large data -- you're talking about dealing with
> 10-300k per request ( it should never go beyond that, because you'd
> be chunking stuff off the db for ease of download to the end user ).
>
> I've been under the impression ( and I'd imagine that others on this
> list ar
> >
> > Obviously, for the second case, I'm assuming that you would do these
> > things on a small percentage of your total requests, otherwise killing
> > off your child would be a major bottleneck.
>
> Here, as well, killing a child process under Windows, means killing my whole
> Apache server
> #**
> use strict;
> package mypack;
>
> my $tmp;
> $tmp .= 'a';
> print '$tmp value: ' . $tmp . ' - address: ' . \$tmp . "\n";
> #**
>
> I am running this script in a ModPerl::Registry environment.
>
> In this sit
On Wed, 2007-05-23 at 17:04 -0400, Dondi M. Stroma wrote:
> I've also gotten segfaults from reading a bad cookie. Another segfault
> problem I experienced was caused by using a lexical variable in a sub in a
> Registry script that was declared outside of the sub (specifically, it was a
> CGI.pm
Hi Tyler
I know next to nothing about reading backtraces, but it looks to me like
your segfault is occurring while your program is trying to parse the
headers.
Before doing any more, I would compile my own version of Apache2,
mod_perl2 and libapreq2, and see if it still occurs.
With regards your
> Clint,
>
> I changed the header I sent from text/html to text/plain and the
> segfaulting no longer occuring.
It's more likely to be the headers your server is receiving (eg cookie?)
than the headers it is sending.
Hi Alicia
The handling of the current working directory has changed from mod_perl
1 to mod_perl 2.
In mod_perl1, mod perl registry used to chdir into the script's
directory.
This no longer happens as mod_perl2 has to support threads, and chdir is
not thread safe - it would affect all other thre
1 - 100 of 205 matches
Mail list logo