Tool to create multiple requests

2012-02-06 Thread Tobias Wagener
th this issue? Thanks and best regards, Tobias

Very special handler

2010-09-03 Thread Tobias Wagener
nt system I can't regocnize anything that took longer or so, but before transfering this code to the productiv system I will be sure, that nothing can happen. Or, perhaps, someone can tell me another way to get the request an apache process is currently handling. Thanks for your help! Rega

Need help with abort connection

2010-07-22 Thread Tobias Wagener
mal" Requests and first after finishing the complete request I can decide if the "Content-Type" is html/pdf/json/xml/etc. Can someone give me a hint or better a solution how I can abort the request on the server side, too. Please excuse my english, but I hope you understand my question ;-) Best regards, Tobias

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-07-03 Thread Tobias Kremer
ing and $Apache::ServerReStarting? This gives me: Apache::ServerStarting = 1 Apache::ServerReStarting = 0 once(!) on server startup - no matter if I "use" my handler or load it via PerlModule. --Tobias

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-07-02 Thread Tobias Kremer
Quoting Tobias Kremer <[EMAIL PROTECTED]>: > Quoting Perrin Harkins <[EMAIL PROTECTED]>: > > How are you loading this? With a PerlModule call? Can you try > > loading it from a Perl section like this? > > > > use MyModule; > > > Wow, it seem

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-07-02 Thread Tobias Kremer
ck out how our real system behaves with this change. Thanks a lot, Perrin! --Tobias

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-07-01 Thread Tobias Kremer
t (overloaded) On first request: 20099 Apache::DBI need ping: yes 20099 Apache::DBI already connected to 'foo:bar...' 20099 Apache::DBI PerlCleanupHandler --Tobias

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-07-01 Thread Tobias Kremer
nd it's correctly telling me that it's "skipping connection during server startup". --Tobias

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-07-01 Thread Tobias Kremer
p and the subsequent connections in the handler() method also works. So everything looks like the connection made during startup is indeed re-used somehow, although Apache::DBI correctly reports that it won't cache it. Maybe now's the time to file a bug report ... --Tobias

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-06-30 Thread Tobias Kremer
dent not-cached handle which should have got nothing to do with my global $dbh that the errors crop up. Thank you very much! :) --Tobias

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-06-30 Thread Tobias Kremer
Quoting Michael Peters <[EMAIL PROTECTED]>: > Tobias Kremer wrote: > > use vars qw( $dbh $thefoo ); > Why are you storing the DB handle in a global variable? > If you do that then Apache::DBI can't help you if the connection goes away. To make this variable availab

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-06-30 Thread Tobias Kremer
ple of requests. Removing the lines: my $foo = LostFoo->new(); $thefoo = $foo; makes the error disappear completely. I've had this problem on many systems and never really bothered because it only shows up on our rather busy system after the server gets restarted but somehow it gives me headaches to not know where it is coming from ... --Tobias

Re: Lost connection to MySQL server during query (was "Segfault when connecting during Apache startup")

2008-06-30 Thread Tobias Kremer
Quoting Perrin Harkins <[EMAIL PROTECTED]>: > On Mon, Jun 30, 2008 at 4:54 AM, Tobias Kremer <[EMAIL PROTECTED]> wrote: > > We never fork and I thought that Apache::DBI takes care of checking if a > > connection went stale by utilizing DBI's/DBD::mysql's ping()

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-30 Thread Tobias Kremer
Quoting Perrin Harkins <[EMAIL PROTECTED]>: > On Fri, Jun 27, 2008 at 5:51 AM, Tobias Kremer <[EMAIL PROTECTED]> wrote: > > Now if I could just get rid of those annoying random "Commands out of sync" > and > > "Lost connection to MySQL server during

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-27 Thread Tobias Kremer
Quoting Tobias Kremer <[EMAIL PROTECTED]>: > On 25.06.2008, at 20:58, Amiri Barksdale wrote: > > I had big trouble with DBD::mysql 4.007. I didn't get rid of my > > segfault problem running mod_perl 1.31 until I went back to 4.004. > > Thanx. It really looks

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
ting to an earlier version of DBD::mysql. --Tobias

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
he 1.x and mod_perl 1.x are old versions, and you will have trouble > finding someone able to help you. Unfortunately, switching to Apache2/mod_perl2 is not an option at this time :( Besides, I doubt that everyone here already erased their entire mod_perl 1 knowledge. Where are my old-hands? ;-) --Tobias

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
Quoting Tobias Kremer <[EMAIL PROTECTED]>: > > - Ubuntu Feisty with apache-perl. > > - stock Ubuntu Perl 5.8.8 (which unfortunately comes with threads) > > - self-rolled DBD::mysql (against libmysqlclient15-dev), DBI and > Apache::DBI > > I should have mentioned t

Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
tu apache-perl package consists of Apache 1.3.34 and mod_perl/1.29. --Tobias

Segfault when connecting during Apache startup with Apache::DBI

2008-06-25 Thread Tobias Kremer
t. #0 0xb775a89b in mysql_ping () from /usr/lib/libmysqlclient.so.15 So it fails during the call to mysql_ping() but I can't see why this is happening. Any ideas? Thanks! --Tobias

Re: Apache offers to download the perl script rather than execute it!

2007-11-20 Thread Tobias Regneri
Hi, > SetHandler perl-script I think it's only a missing file type SetHandler perl-script .pl Hth, Tobias

Re: Question...

2007-09-26 Thread Tobias Regneri
1); } print "Content-type: text/html\n\n"; print "Test"; print("version 2.x suceeded!!!"); print ""; 1; I think apache2/mp2 automatically sends a header and apache 1.3 doesn't. It's only a guess cause I don't have any experiences with apache2. Tobias

Re: Question...

2007-09-25 Thread Tobias Regneri
Hi Tyler, I don't think that your script causes the issue. Is there a timeout value set in the httpd.conf? Hth, Tobias

PerlRequire executed 4 times on apache startup

2007-08-28 Thread Tobias Zeising
Hi all, I have a weird problem: on startup apache executes 4 times a Perl Script I included via PerlPostConfigRequire startup.pl in the httpd.conf. The startup script contains following code: #!/usr/bin/perl my $file = 'c:\tmp\test.txt'; open(INFO ,">>$file") || die "Error $!"; print INFO

Re: SOAP::Lite / processing complex data types at server side

2007-04-05 Thread Tobias Regneri
o('MySOAPService') -> handle; BEGIN { package MySOAPService; use strict; use vars qw(@ISA); @ISA = qw(SOAP::Server::Parameters); sub ListHandler { my $self = shift; my $envelope = pop; my $i = 0; for my $item ($envelope->valueof("//ListHandler/List/ListItem")) { $ListItemName = $item->{Name}; $ListItemValue = $item->{Value}; # ... $i++; } return SOAP::Data->name("ItemCount" => $i); } } That's all. Regards Tobias

Re: SOPE::Lite / prcessing complex data types at server side

2007-04-04 Thread Tobias Regneri
HASH(...)) I only retrieve an empty hash. Correct me if I'm wrong, but I understand the above list as follows: The hash with name attrList contains the key listItem with an anonymous array as value. The array itself contains two hashes each with the two keys attrVal and attrName. How can I access these values? Thanks a lot. Tobias

SOPE::Lite / prcessing complex data types at server side

2007-04-04 Thread Tobias Regneri
s in the wrong way? I would appreciate if someone could point me in the right direction. Thanks, Tobias

[JOB] Perl/mod_perl Web Developer in Cologne, Germany

2006-12-12 Thread Tobias Kremer
urbia.com AG is looking for an experienced Perl/mod_perl Web developer (full-time) to support the development of our successful online community at www.urbia.de. More information (in German only) about the job can be found at: http://www.urbia.de/general/jobs/ -- Kind regards Tobias Kremer

Re: Memory Usage

2006-09-01 Thread Tobias Kremer
I suggest taking a look at the excellent mod_perl performance guide: http://perl.apache.org/docs/1.0/guide/performance.html -- Tobias Zitat von "Daniel B. Hemmerich" <[EMAIL PROTECTED]>: > We are concerned about how much memory we are using now that we are moving > t

Re: [mp2] *** glibc detected *** double free or corruption (fasttop)

2006-08-04 Thread Tobias Kremer
Hi Andreas, if you're using the Debian supplied packages for apache2, perl and mod_perl I'd try compiling them manually and see if that helps. This will also give you a Perl interpreter without threads (which have a negative impact on performance AFAIK). HTH, Tobias :) Zitat v

Re: (Database-)Object initialization during server-startup

2006-06-23 Thread Tobias Kremer
Zitat von Perrin Harkins <[EMAIL PROTECTED]>: > > Create a new instance of the mod_perl handler module during startup and > > refer to that for the handlers (code below). > > This module would then cache DB connections and provide a method for > > 'create or fetch current DB connection'. > > DBI->

Re: (Database-)Object initialization during server-startup

2006-06-23 Thread Tobias Kremer
Zitat von Perrin Harkins <[EMAIL PROTECTED]>: > You need to separate managing your database connections from caching > this data. They are not related, and there's no reason to do both in > one class. Either just call connect_cached all the time (it uses > Apache::DBI when it finds it loaded), o

(Database-)Object initialization during server-startup

2006-06-23 Thread Tobias Kremer
Hey guys, I'm wondering what's the best way to design a database-backed module which works completely on its own as well as within mod_perl (mp1). The module should make a database connection during object initialization (new). This connection should then be used by all methods which want to acces

Re: the perl scripts are not executed on server side

2006-06-14 Thread Tobias
Zitat von Eric GRAMMATICO <[EMAIL PROTECTED]>: > When I connect to http://localhost/perl/rocks.pl the browser shows the > source code. I believe I have a miss configuration somewhere, but I > didnt find. Here is the alias part of my /etc/httpd/conf.d/perl.conf: > > Alias /perl/ /var/www/perl/ >

Crypt::OpenSSL::X509

2006-04-12 Thread Tobias Regneri
v5.8.0 OpenSSL v0.9.6g Crypt-OpenSSL-X509-0.3.1 Sorry for the not modperl-related post, but I hope here's someone who can help me. Thanks, Tobias -- Tobias Regneri mailto:[EMAIL PROTECTED]

Re: the modperl book link is broken

2006-02-08 Thread Tobias Regneri
Ken Perl wrote: > their links http://modperlbook.org/ ... are both broken modperlbook.org works fine for me, try it again ... TR

Re: [slightly OT] Catalyst? Maypole?

2006-01-24 Thread Tobias Kremer
Zitat von Daniel McBrearty <[EMAIL PROTECTED]>: > I've been looking around at MVC frameworks a bit recently. RoR looks > good if you don't mind the language switch, but I'm also looking at > these two. Anyone have much experience of them, in tandem with > mod_perl? Feedback and thoughts? Catalyst

Re: Weird Apache/DBI problems

2005-12-22 Thread Tobias
Zitat von Perrin Harkins <[EMAIL PROTECTED]>: > On Thu, 2005-12-22 at 16:00 +0100, Tobias wrote: > > As soon as more than one parallel request is made I immediately get > > unexplainable DBI errors like "fetch() without execute()", "DBD driver > > has no

Weird Apache/DBI problems

2005-12-22 Thread Tobias
Hi list, I recently transferred our application to a more powerful server running debian 3.1. As always I compiled the important parts (perl 5.8.7 without threads and apache 1.3.34/mod_perl plus a lot of cpan modules) myself. Our application (which uses Mason) ran fine for the last 3 years on all

debian sarge packages in a production environment

2005-12-16 Thread Tobias
hi list, i'd like to know if it is okay to use debian sarge's apache-perl package for a production environment or if i'd be better of rebuilding everything including perl (as debian's perl comes with ithreads support)? I've read that a perl interpreter with ithreads enabled is about 10-15% slower

Re: mod_perl and mysql

2003-11-12 Thread Tobias Kremer
statically and dynamically with built-in mysql-support and linked to my installed mysql libraries - nothing helped). I finally gave up on this and am now running two separate apache servers (one for php, one for mod_perl) on my machine which kinda sucks :( -- Cheers, Tobias Zitat von Glob