Re: Config::Loader and HTML::StripScripts

2007-06-26 Thread Kjetil Kjernsmo
e user input and insert in the document, which is then going through some XSLT, and since you've allready parsed stuff, it seems like a waste to parse again. So that's my feature request! :-) Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: Memory Usage

2007-03-30 Thread Kjetil Kjernsmo
i just can't think of why this occurs. I can't help too much with the general problem, but how much is shared after time goes by? If a lot is shared, I wouldn't worry too much, but if there is little shared, it would become expensive to scale. Kjetil -- Kjetil Kjernsmo Informat

Re: MP1 Security issue (was Re: [mp1] PerlRun fails if path_info contains special symbols)

2007-03-23 Thread Kjetil Kjernsmo
pecial characters can enter the URI, and in some cases they go through a registry script, and we have not observed any crashes due to this. Best, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

the "User Pressed Stop Button" Case again

2007-03-20 Thread Kjetil Kjernsmo
void that it results in a 500? Or is this likely due to something more serious? Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: apache MaxClients and locking up

2007-02-09 Thread Kjetil Kjernsmo
And if that doesn't work, you need more RAM! :-) Unless, of course, you max out the CPU, then you need a faster CPU or another box... Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Tiny but bad bug in Apache2::SizeLimit?

2006-11-16 Thread Kjetil Kjernsmo
ne 113. I haven't really investigated, but it looks to me that shared_cleani is a typo, and I figured it is better that I shout now, just in case 2.0.3 was going out the door... Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Setting MaxClients based on SizeLimit

2006-11-15 Thread Kjetil Kjernsmo
ARE_SIZE)/($Apache2::SizeLimit::MAX_PROCESS_SIZE-$Apache2::SizeLimit::MIN_SHARE_SIZE)); where $mem is the actual memory of the box, figured out by checking /proc/meminfo... It sort of looks like the directives can be set by just putting a $ in front, but does that work for everything? Cheers,

Re: Loading at startup to use shared memory

2006-11-08 Thread Kjetil Kjernsmo
is out of core (paged out). > Hence to make your measurement accurate you must lock the parent > apache in core or turn off swapping completely. Heh, that's no problem, because our sysadmin insists that swapping sucks, so there is no swap on those boxes... Cheers, Kjetil -- Kjetil Kjer

Jobs at Opera in Oslo

2006-11-08 Thread Kjetil Kjernsmo
ality Assurance Engineer http://www.opera.com/company/jobs/opening.dml?id=24 Junior System Developer http://www.opera.com/company/jobs/opening.dml?id=28 Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: Loading at startup to use shared memory

2006-11-07 Thread Kjetil Kjernsmo
up on that, because I thought Apache2::Resource did the same thing, but yeah, I think that is something we want to look into. Also, you're saying that the $Apache2::SizeLimit::HOW_BIG_IS_IT is a better way to assess the shared memory usage then GTop? -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: Loading at startup to use shared memory

2006-11-07 Thread Kjetil Kjernsmo
h i've extensively profiles, i've got about  110MB of >   shared memory, and each  child consumes 10-20 mb of unshared memory Wow, that's very nice. -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Loading at startup to use shared memory

2006-11-06 Thread Kjetil Kjernsmo
reasonably be in shared memory pages. So, any ideas where I can start to understand why this isn't shared? Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: How to get virtualhost info in mod_perl?

2006-10-26 Thread Kjetil Kjernsmo
NV is populated for every request (isn't it?) and so represents an overhead, but then my colleagues pointed out that if it is there allready, the penalty has allready been taken, so why not use it? To which I had no good answer. Perhaps %ENV can be turned off entirely? -- Kjetil Kjernsm

Re: Occasional problems with URI package under mp

2006-09-20 Thread Kjetil Kjernsmo
swer was of course no... But now it is, and that was it. So, thanks! Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: Occasional problems with URI package under mp

2006-09-20 Thread Kjetil Kjernsmo
e2::XSLoader (); our $VERSION = '2.02'; so it seems to be the correct version? But yeah, I think it looks like we have the culprit here, but why does it load Apache2::URI when use-ing URI rather than URI...? -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: Occasional problems with URI package under mp

2006-09-19 Thread Kjetil Kjernsmo
new" via package "URI" at [blah] Now, there is quite a lot of our internal code around, out of which quite a few things suck, but still, this really mystifies me... -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: Occasional problems with URI package under mp

2006-09-19 Thread Kjetil Kjernsmo
a while, I could rearrange the use statements to make it work, but that now appears to be random... -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Occasional problems with URI package under mp

2006-09-19 Thread Kjetil Kjernsmo
. This email is a shot in the dark too, but with all the good people here, perhaps someone might have some light to shed? Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: Receiving user input

2006-09-01 Thread Kjetil Kjernsmo
my $name ($req->param) { next if ($FORM{$name}); my @values = $req->param($name); $FORM{$name} = [EMAIL PROTECTED]; } Completely untested, taken from thin air, but you might like to give it a try. -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: mod perl Apache2::SOAP Segmentation fault

2006-08-01 Thread Kjetil Kjernsmo
orts.org/ We're using that in production, it works fine. It gets worse if you need libapreq2 and stuff, I'm not aware of any backports of that, so you may need to compile that yourself. -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: urgent help needed

2006-07-27 Thread Kjetil Kjernsmo
On Thursday 27 July 2006 17:36, Boysenberry Payne wrote: > LoadModule apreq_module    /usr/local/apache2/modules/mod_apreq2.so I think this line is probably what you're missing, Philge. -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: Slightly OT: mp2 oriented Captcha Module -- anyone interested ?

2006-06-06 Thread Kjetil Kjernsmo
when a spammer manages to get through your CAPTCHA, you have a new plugin the next day. But yeah, I'd like to cooperate on this, as we need to replace the stuff we have. Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

The evility of $r->status

2006-05-19 Thread Kjetil Kjernsmo
and if so, what should be done to rewrite them? Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

Re: Dealing with malformed cookies

2006-05-10 Thread Kjetil Kjernsmo
On Tuesday 09 May 2006 20:34, Jonathan Vanasco wrote: > On May 9, 2006, at 5:30 AM, Kjetil Kjernsmo wrote: > > First of all, is it the intended behavior that libapreq2 should die > > under these circumstances? > > yes. > > > If yes, are we supposed to deal with this

Dealing with malformed cookies

2006-05-09 Thread Kjetil Kjernsmo
that is introduced? Any other advice as to how we should deal with malformed cookies with libapreq2? [1] http://mail-archives.apache.org/mod_mbox/perl-modperl/200601.mbox/[EMAIL PROTECTED] Cheers, Kjetil -- Kjetil Kjernsmo Information Systems Developer Opera Software ASA

[mp2] Patch for Apache2::Resource defaults problem

2005-11-17 Thread Kjetil Kjernsmo
Hi and a little dahut to all cryptids! I was trying out the Apache2::Resource module, and decided to try it out using just the default configuration. All I got was Can't locate object method "server" via package "Apache2" at /usr/lib/perl5/Apache2/Resource.pm line 133. So, I started hacking th

Re: Tied Apache::Session objects in AxKit::XSP::BasicSession

2005-06-21 Thread Kjetil Kjernsmo
per will give: $VAR1 = { '_access_time' => 1119392841, '_session_id' => 'ba3e899edd0e06939a280fca93e3affc', '_creation_time' => 1119385419 }; which is the correct data, but obviously not tied to anything

Re: Tied Apache::Session objects in AxKit::XSP::BasicSession

2005-06-20 Thread Kjetil Kjernsmo
On Friday 17 June 2005 06:00, Perrin Harkins wrote: > > I currently assign to pnotes like this: > >     $r->pnotes(session => tied %session); > > No, you want the hash, not the object it's tied to: > $r->pnotes('session' => \%session); > > Then use it like this: > my $session_ref = $r->pnotes('sess

Re: Tied Apache::Session objects in AxKit::XSP::BasicSession

2005-06-16 Thread Kjetil Kjernsmo
the cleanup handler. Would be nice, but there is some code in it I would have to figure out how to handle, it would be nice to just drop it if I can. Cheers, Kjetil -- Kjetil Kjernsmo Programmer/Astrophysicist/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/OpenPGP KeyID: 6A6A0BBC

Tied Apache::Session objects in AxKit::XSP::BasicSession

2005-06-12 Thread Kjetil Kjernsmo
r general Perl question. Nevertheless, the rest of the herd felt this would be the right forum to ask. Anxiously hoping for enlightenment, Kjetil -- Kjetil Kjernsmo Programmer/Astrophysicist/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL P

Re: Apache::Session::Store::Postgres FOR UPDATE problems [OT]

2005-05-02 Thread Kjetil Kjernsmo
but unsurprisingly, it doesn't with Pg. So, for now, I have filed a bug against my own package, so that at least my users will have a fair chance to understand what's going on: http://rt.cpan.org/NoAuth/Bug.html?id=12473 If anyone wants to have a look, it is certainly appreciated, otherwi

Apache::Session::Store::Postgres FOR UPDATE problems

2005-04-29 Thread Kjetil Kjernsmo
I can't figure out what... Or, if it could be somebody else's bug, relieve me of the feeling of being stupid... :-) Clues are most welcome! Cheers, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/OpenPGP KeyID: 6A6A0BBC