Re: MIME::Lite / mod_perl2 segfault

2005-12-21 Thread John ORourke
Dunno if this'll help but a couple of points: 1 - why use instead of in httpd.conf? 2 - I successfully upgraded Apache and mod_perl without too much trouble, there were many bug fixes between 1.99* and 2.0.1. Well worth it. 3 - I'm "use"ing MIME::Lite 3.01 on mod_perl 2.0.1, httpd 2.0.51, Per

Re: go crazy with me

2005-12-21 Thread Foo Ji-Haw
I know it's not exactly the most efficient, but will it work if we continue with the current MPM model. The difference is that both the server and the client use SOAP as the means of communication. When an event occurs, Apache will delivers the event message via the client's SOAP interface. This wa

Re: MIME::Lite / mod_perl2 segfault

2005-12-21 Thread Randy Kobes
On Wed, 21 Dec 2005, Peter Mogensen wrote: Frank Wiles wrote: My system is Debian Sarge, kernel 2.6.12.5 (custom compiled) The rest is standard Sarge: ii apache22.0.54-5 ii apache2-common 2.0.54-5 ii apache2-mpm-pr 2.0.54-5 ii apache2-utils 2.0.54-5 ii libapache2-mod 1.999.21-1 .

ANNOUNCE: HTML::Template v2.8

2005-12-21 Thread Sam Tregar
ANNOUNCEMENT: HTML::Template 2.8 CHANGES - New Feature: the new default_escape option allows you to apply escaping to all variables in a template. [Alex Kapranoff] - Bug Fix: ESCAPE wasn't working on variables containing code-refs. - Bug Fix: Changed HTML::Template to help sub-cl

Re: go crazy with me

2005-12-21 Thread Boysenberry Payne
I have Apache 1.33 on my front end and an .htaccess file with the following RewriteRule ^(.*)habitat[/]?$ http://perl.habitatlife.com:81/habitat.pl [P] On the back end I have MP2 and Apache2. How can I be sure keep alive is off? Is it done via the front or back? Is this the wrong group f

Re: remove me from the list

2005-12-21 Thread Jonathan Vanasco
Can you not remove yourself? i know i'm one of the few people who keep their subscription messages, but its not that hard to figure out where the mail is coming from I went to perl.apache.org, as thats what the FROM address on messages are I clicked on 'maillist subscritpion' i see:

OT: Re: Fw: remove me from the list

2005-12-21 Thread Diona Kidd
What's with the mass exodus? Michael Lettre wrote: List Who ever is in charge of this list please REMOVE me. Thanks mike lettre

Fw: remove me from the list

2005-12-21 Thread Michael Lettre
  List Who ever is in charge of this list please REMOVE me.Thanksmike lettre

Re: remove me from the list

2005-12-21 Thread Philip M. Gollucci
I'm not, but if we need moderation help, I'll chip if someone gives me the karma. "Love is not the one you can picture yourself marrying, but the one you can't picture the rest of your life without." "It takes a minute to

remove me from the list

2005-12-21 Thread Gordon Stewart
List Who ever is in charge of this list please REMOVE me. Thanks Gordon Stewart

Re: go crazy with me

2005-12-21 Thread Perrin Harkins
On Wed, 2005-12-21 at 16:06 -0500, Jonathan Vanasco wrote: > would it be possible having a non-apache proxy/vanilla server? Possible to use keep-alive? No. The issue is the same, regardless of what kind of server the front-end is. You do not want the backend servers to wait around after finishi

Re: go crazy with me

2005-12-21 Thread Jonathan Vanasco
would it be possible having a non-apache proxy/vanilla server? i migrated my front-end server from apache2 to lighttpd. i lost some features (proxying webdav isn't happy yet, and there's no equivalent to mod_security yet) -- but i gained a ginormous increase in speed and available resources

Re: How do I check a socket to know it is not closed?

2005-12-21 Thread David Nicol
Joshua ben Jore claimed: You might tell that mod_perl list that he could use http://perlmonks.org/?node_id=367478 to flag unchecked operations like send(). There was even code to automatically fix such code into C. I don't recall whether the code as posted was smart enough to DRT for system() and

Re: go crazy with me

2005-12-21 Thread Randal L. Schwartz
> "Fred" == Fred Moyer <[EMAIL PROTECTED]> writes: Fred> Can you explain a bit more why using keep-alives to the backend is not Fred> a good thing? I've always been under the impression from conference Fred> lectures and literature that turning keep-alives on for the app server Fred> is somet

Re: go crazy with me

2005-12-21 Thread Fred Moyer
Randal L. Schwartz wrote: "Andreas" == Andreas J Koenig <[EMAIL PROTECTED]> writes: Andreas> I'd also like to hear what people are doing when the apache model has Andreas> scaling problems. We have one problematic project here: we're a Andreas> gateway and must server a high number of very slow

Re: go crazy with me

2005-12-21 Thread Ken Simpson
> Okay, so you basically run two daemons -- mod_perl, and a separate > multiplexing one -- to handle this? Did you investigate what would be > involved in changing apache to support multiplexing as an MPM? Yes -- we did look at that. The problem is that the MPM model assumes that the handler runs

mp2 Apache won't start under ssh

2005-12-21 Thread Helmut Zeilinger
Hi all, Apache with mod_perl starts and stops normaly from a linux console. Commands: /usr/sbin/apache2 -k start /usr/sbin/apache2 -k stop But when i am logged in in the system by ssh from a remote host (as root) the second start/stop-cycle fails => the apache process seems to "hang". The pro

Re: Solving mod_perl scalability issues for lots of slow connections

2005-12-21 Thread Jonathan
I fwd'd this to a friend with commit access to twisted. hopefully i'll get a response on clarification. But from what I understand, the Twisted networking framework works like this: The twisted 'reactor' is single threaded. It uses select by default, you can use poll. The docs suggest

Re: go crazy with me

2005-12-21 Thread Perrin Harkins
On Tue, 2005-12-20 at 09:00 -0800, Ken Simpson wrote: > Instead of having one multiprocessing-oriented Apache mod_perl process > per SMTP connection, we use a single event-driven process to handle > all SMTP connections. To avoid blocking in this single process, we > dispatch any CPU-intensive task

Re: Solving mod_perl scalability issues for lots of slow connections

2005-12-21 Thread Perrin Harkins
On Tue, 2005-12-20 at 14:42 -0800, Ken Simpson wrote: > Alas, if only the Perl interpreter was truly thread safe and did not > clone a new interpreter for each thread, we could just use > threads... Those Python people have it good in some ways. Not that good really. As I understand it, the Pytho

Re: go crazy with me

2005-12-21 Thread Perrin Harkins
On Wed, 2005-12-21 at 08:09 +0100, Andreas J. Koenig wrote: > I should not have mentioned that the customers are slow as well. > Currently our main concern is that our processes have to wait for > several data sources, then compute the answer and that our valuable > memory is wasted during the wait

Re: $r->print doesn't work in Apache2/MP2/Libapreq2?

2005-12-21 Thread Harry Zhu
Thanks for the quick reply. use Apachd2::RequestIO solve the problem (I am trying to migrate from MP1 to MP2 and I thought Apache2::Request would already did that.) Harry - Original Message - From: "Frank Wiles" <[EMAIL PROTECTED]> To: "Harry Zhu" <[EMAIL PROTECTED]> Cc: Sent: Wedn

Re: MIME::Lite / mod_perl2 segfault

2005-12-21 Thread Chase Venters
On Wed, 21 Dec 2005, Peter Mogensen wrote: Yes. But the above version is what ships with Sarge (unfortunately) due to the API change, and I would need a very good reason to upgrade to the new API at present. So if there was a simple explanation, which I could solve by a slight modifictation to o

Re: Need use modules in my code?

2005-12-21 Thread Carl Johnstone
#!/usr/bin/perl use Compress::Zlib; . print Compress::Zlib::memGzip($htmlstr); This one is best practise - and is a requirement when you want to import functions into your own scripts name space. Carl

Re: MIME::Lite / mod_perl2 segfault

2005-12-21 Thread Peter Mogensen
Frank Wiles wrote: >>My system is Debian Sarge, kernel 2.6.12.5 (custom compiled) >>The rest is standard Sarge: >>ii apache22.0.54-5 >>ii apache2-common 2.0.54-5 >>ii apache2-mpm-pr 2.0.54-5 >>ii apache2-utils 2.0.54-5 >>ii libapache2-mod 1.999.21-1 ... > You're going to most likely

Re: $r->print doesn't work in Apache2/MP2/Libapreq2?

2005-12-21 Thread Frank Wiles
On Wed, 21 Dec 2005 10:15:49 -0600 Frank Wiles <[EMAIL PROTECTED]> wrote: > You want to do this instead: > > sub handler { > my $r = shift; > my $req = Apache2::Request->new( $r ); > my %ins = &process_input($r); > > $r->print. > } Of course I notice th

Re: $r->print doesn't work in Apache2/MP2/Libapreq2?

2005-12-21 Thread Frank Wiles
On Wed, 21 Dec 2005 10:06:29 -0600 "Harry Zhu" <[EMAIL PROTECTED]> wrote: > > sub handler { > my $r = Apache2::Request->new(shift); > my %ins = &processInput($r); > ... > $r->print($html); > return OK; > } > > Can't locate auto/Apache2/Request/print.al in @INC (@INC contains: > /www/m

Re: $r->print doesn't work in Apache2/MP2/Libapreq2?

2005-12-21 Thread Issac Goldstand
That's because the $r you get from shift isn't interchangable with the $r you get from Apache2::Request (which I think is deprecated anyway). Try doing sub handler { my $r = shift; my $q = Apache2::Request->new($r); my %ins = &processInput($q); ... $r->print($html); return OK; } Harry Zhu

$r->print doesn't work in Apache2/MP2/Libapreq2?

2005-12-21 Thread Harry Zhu
sub handler { my $r = Apache2::Request->new(shift); my %ins = &processInput($r); ... $r->print($html); return OK; } Can't locate auto/Apache2/Request/print.al in @INC (@INC contains: /www/modperl /usr/local/lib/perl5/5.8.7/i686-linux /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5/site_pe

Re: go crazy with me

2005-12-21 Thread Matt Sergeant
On 20 Dec 2005, at 12:00, Ken Simpson wrote: Not sure what you mean by it not scaling - can you elaborate? Sure it uses more ram than multiplexing, but even for a high traffic mail server like apache.org's the mail-in-apache2 model works well (apache.org uses Apache::Qpsmtpd for email). I'm cur

Re: MIME::Lite / mod_perl2 segfault

2005-12-21 Thread Frank Wiles
On Wed, 21 Dec 2005 11:21:14 +0100 Peter Mogensen <[EMAIL PROTECTED]> wrote: > I think I have the signs of a bug somewhere. I'm building a mod_per2 > application and lately the apache2 process has started to sigfault. It > seems to be after I started "use"ing MIME::Lite. > > I've isolated the pro

MIME::Lite / mod_perl2 segfault

2005-12-21 Thread Peter Mogensen
Hi, I think I have the signs of a bug somewhere. I'm building a mod_per2 application and lately the apache2 process has started to sigfault. It seems to be after I started "use"ing MIME::Lite. I've isolated the problem to the 3 small files included. If I use MIME::Lite it apache will segfault on

Solving mod_perl scalability issues for lots of slow connections

2005-12-21 Thread Ken Simpson
[note: Subject changed from "go crazy with me" -- LoL] > I'd also like to hear what people are doing when the apache model has > scaling problems. We have one problematic project here: we're a > gateway and must server a high number of very slow customers to a high > number of very slow feeds. Ide

Re: Going mod_perl hourly rate?

2005-12-21 Thread Jonathan Vanasco
I've never done MP2 contract work, but all other contract work I've done has followed this rule (at the least): Depends on location I'd suggest posting a followup with what market you're in and what kind of work, and then people who have an idea might want to chime in.

Re: go crazy with me

2005-12-21 Thread Ken Simpson
> Not sure what you mean by it not scaling - can you elaborate? Sure it > uses more ram than multiplexing, but even for a high traffic mail > server like apache.org's the mail-in-apache2 model works well > (apache.org uses Apache::Qpsmtpd for email). > > I'm curious as to how you've mixed thing

Re: what is difference with static and DSO mod_perl ?

2005-12-21 Thread Jonathan Vanasco
This is the main difference: DSO: you need those 2 lines there's a negligible speed/memory overhead. you'd barely notice it if you ran some severe benchmarking tests when mod_perl is updated, you just recompile the mod_perl module Static: you don't use those 2 lines

Re: go crazy with me

2005-12-21 Thread Valerio VALDEZ Paolini
Hello, On Monday 19 December 2005 04:18, JT Smith wrote: > Apache is the ultimate event handler. It's listening for socket events. Why > couldn't we change it just a bit to listen to timer events and thusly kick > off an execution once per minute to check a cron tab. The reading of cron > tabs is

Re: go crazy with me

2005-12-21 Thread Jonathan Vanasco
You could look into the Twisted framework for python: http://twistedmatrix.com/ It's a really solid networking framework, but its python based (not perl). On Dec 19, 2005, at 12:48 AM, JT Smith wrote: Yup, I've actually already done it that way with both Parallel::ForkManager in

Re: apache::session not writing to db

2005-12-21 Thread Jonathan Vanasco
first- add a timestamp column to your db store. you're going to need to clean out old sessions somehow. mysql> describe sessions; +---+-+--+-+---+---+ | Field | Type| Null | Key | Default | Extra | +---+--

Re: go crazy with me

2005-12-21 Thread Tagore Smith
Andreas J. Koenig wrote: On 20 Dec 2005 16:21:42 -0800, merlyn@stonehenge.com (Randal L. Schwartz) said: > Are you already using a reverse-proxy? Make sure the front lightweight > servers *do* use cache and *don't* use keep-alive to the backend... > your heavy backend will spit the en

Re: mailing list

2005-12-21 Thread Gordon Stewart
List I think there is an issue with the mailing list. I unsubscribe from the list last night and I am still getting email from it. Thanks Gordon Stewart - Original Message - From: "Frank Wiles" <[EMAIL PROTECTED]> To: "Gordon Stewart" <[EMAIL PROTECTED]> Sent: Tuesday, December 20,