Re: [Catalyst] SIGINT triggers segfault in Oracle libraries

2010-09-08 Thread Tomas Doran
On 8 Sep 2010, at 18:56, E R wrote: Does catalyst install a SIGINT handler? No. (Assuming we are talking about the built in dev server here - Catalyst never does, different engines may however0 Is there a way to trace perl execution after the INT signal is received? Try Devel::bt? Che

Re: [Catalyst] How to share a database connection across multiple Catalyst apps?

2010-09-08 Thread Tomas Doran
On 8 Sep 2010, at 19:17, Javier Arturo Rodriguez wrote: On 9/8/10 4:54 PM, Simon Miner wrote: The parameters defining the connection have to be exactly the same, including the connect attributes! If there is no appropriate database handle or if the ping method fails, a new connection i

[Catalyst] Leak tests

2010-09-08 Thread Bill Moseley
Anyone have an example of checking for leaks in their test suite? Few days ago had some nice 1.6GB Apache processes and thought we had a leak. Turned out we had a query that was trying to suck too much out of the database and it was just doing what it was told, but I still want to add some genera

Re: [Catalyst] Leak tests

2010-09-08 Thread Florian Ragwitz
Bill Moseley writes: > I've used CatalystX::LeakChecker in the past but not sure how to > incorporate that into a .t file. Check out Catalyst-Runtime's and CatalystX::LeakChecker's test suite. They both do that. pgpqpfTRJTtTw.pgp Description: PGP signature __

Re: [Catalyst] "Wrong Content-Length value"

2010-09-08 Thread Nicholas Wehr
agree - seems to warrant more of a 'warn' than 'error'. On Wed, Sep 8, 2010 at 4:59 PM, Bill Moseley wrote: > > > On Wed, Sep 8, 2010 at 4:13 PM, Nicholas Wehr > wrote: > >> okay - in this context I can understand your original message. I think >> catalyst is behaving okay. In your example, the

Re: [Catalyst] "Wrong Content-Length value"

2010-09-08 Thread Bill Moseley
On Wed, Sep 8, 2010 at 4:13 PM, Nicholas Wehr wrote: > okay - in this context I can understand your original message. I think > catalyst is behaving okay. In your example, the client is disconnected so it > cannot receive a response code. in my test telnet where I ran your example, > I fed more da

Re: [Catalyst] [OT] Syntax scheme for TT and kate?

2010-09-08 Thread Peter Edwards
On 8 September 2010 19:49, Ekki Plicht (DF4OR) wrote: > Am Mittwoch 08 September 2010, 20:16:29 schrieb Rippl, Steve: > > That got me thinking and I found this... > > > > http://template-toolkit.org/download/index.html#editors_6 > Along similar lines, to highlight Perl in log lines http://blogs.

Re: [Catalyst] "Wrong Content-Length value"

2010-09-08 Thread Nicholas Wehr
okay - in this context I can understand your original message. I think catalyst is behaving okay. In your example, the client is disconnected so it cannot receive a response code. in my test telnet where I ran your example, I fed more data in than was expected - but since I left the client connecte

Re: [Catalyst] "Wrong Content-Length value"

2010-09-08 Thread Bill Moseley
On Wed, Sep 8, 2010 at 2:38 PM, Nicholas Wehr wrote: > interesting problem. so the client is making byte-range requests on dynamic > content? if it's static - I'd recommend you defer this functionality to > apache. > No, it's not that. It's simply that the client is sending a content-length head

Re: [Catalyst] "Wrong Content-Length value"

2010-09-08 Thread Ashley Pond V
On Wed, Sep 8, 2010 at 2:30 PM, Bill Moseley wrote: > > On Wed, Sep 8, 2010 at 2:16 PM, Nicholas Wehr > wrote: >> >> so which engine and version are you using? apache? built-in http? fastcgi? > > Apache, but that message is in Catalyst::Engine parent class. > FWIW, this was plaguing me in FastCG

Re: [Catalyst] "Wrong Content-Length value"

2010-09-08 Thread Nicholas Wehr
interesting problem. so the client is making byte-range requests on dynamic content? if it's static - I'd recommend you defer this functionality to apache. On Wed, Sep 8, 2010 at 2:30 PM, Bill Moseley wrote: > > > On Wed, Sep 8, 2010 at 2:16 PM, Nicholas Wehr > wrote: > >> so which engine and v

Re: [Catalyst] "Wrong Content-Length value"

2010-09-08 Thread Bill Moseley
On Wed, Sep 8, 2010 at 2:16 PM, Nicholas Wehr wrote: > so which engine and version are you using? apache? built-in http? fastcgi? > Apache, but that message is in Catalyst::Engine parent class. -- Bill Moseley mose...@hank.org ___ List: Catalyst@list

Re: [Catalyst] "Wrong Content-Length value"

2010-09-08 Thread Nicholas Wehr
so which engine and version are you using? apache? built-in http? fastcgi? On Wed, Sep 8, 2010 at 2:08 PM, Bill Moseley wrote: > The problem I have with this code is that requests can trigger an error on > demand. Errors eventually trigger an email to a bunch of people. But it's > for an error

[Catalyst] "Wrong Content-Length value"

2010-09-08 Thread Bill Moseley
The problem I have with this code is that requests can trigger an error on demand. Errors eventually trigger an email to a bunch of people. But it's for an error nobody can fix. # paranoia against wrong Content-Length header my $remaining = $length - $self->read_position;

Re: [Catalyst] [OT] Syntax scheme for TT and kate?

2010-09-08 Thread Ekki Plicht (DF4OR)
Am Mittwoch 08 September 2010, 20:16:29 schrieb Rippl, Steve: > That got me thinking and I found this... > > http://template-toolkit.org/download/index.html#editors_6 > > Don't know if it's any good, I'm going to try the vim one... Way cool, many thanks! Works nicely. Of course I didn't check t

Re: [Catalyst] [OT] Syntax scheme for TT and kate?

2010-09-08 Thread Rippl, Steve
That got me thinking and I found this... http://template-toolkit.org/download/index.html#editors_6 Don't know if it's any good, I'm going to try the vim one... On Wed, Sep 8, 2010 at 11:00 AM, Ekki Plicht (DF4OR) wrote: > > Hi. > > Maybe not the best place to ask for, but does somebody have a

Re: [Catalyst] How to share a database connection across multiple Catalyst apps?

2010-09-08 Thread Javier Arturo Rodriguez
On 9/8/10 4:54 PM, Simon Miner wrote: Thanks for the responses, Jason, I don't think reducing the number of database connections will hurt responsiveness. Even though there are 3 separate Catalyst apps, each HTTP request will only involve one of them (since they all run out of the same web

[Catalyst] [OT] Syntax scheme for TT and kate?

2010-09-08 Thread Ekki Plicht (DF4OR)
Hi. Maybe not the best place to ask for, but does somebody have a syntax highlighting scheme for TT for the 'kate' editor under KDE? Would be helpful. I was contemplating to write one myself, but currently the learning curve is steep enough with Moose, DBIx::Class and Catalyst, enough not to bo

Re: [Catalyst] SIGINT triggers segfault in Oracle libraries

2010-09-08 Thread E R
On Tue, Sep 7, 2010 at 9:18 PM, Tomas Doran wrote: > > This is an Oracle library thing, can't really help, sorry.. Does catalyst install a SIGINT handler? Is there a way to trace perl execution after the INT signal is received? I have a feeling that the Oracle libraries are getting called from

Re: [Catalyst] How to share a database connection across multiple Catalyst apps?

2010-09-08 Thread Brian Phillips
(Hopefully I'm not out of my depth here) I feel your pain WRT Oracle connections as we've had similar complaints from our DBA overlords about the number of connections our app was making here at $work. Do you have your mod_perl processes behind some sort of proxy? If you run your mod_perl applic

Re: [Catalyst] How to share a database connection across multiple Catalyst apps?

2010-09-08 Thread Stuart Watt
Sounds like a job for DBD::Proxy or DBD::Gofer, not that I've ever used them, and I have no idea whether they would play nice with DBIC -- the DBIC folks would have a better grasp on that question. That would leave the Catalyst parts unchanged apart from configuration, which would be a good th

RE: [Catalyst] Weird error with View::JSON

2010-09-08 Thread Mesdaq, Ali
Thanks that did the trick! Thanks, -- Ali Mesdaq (CISSP, GIAC-GREM) Sr. Security Researcher Websense Security Labs http://www.WebsenseSecurityLabs.com -- -Original Message- From: Tomas Doran [mailto:bobtf...@

Re: [Catalyst] different storage for a controller

2010-09-08 Thread André Walker
I bet he is looking for C::P::Authorization::Roles. Em 08-09-2010 11:58, Tomas Doran escreveu: On 8 Sep 2010, at 14:53, rahed wrote: in MyApp.pm I have: __PACKAGE->config(session => {storage => '/tmp/mystorage'}); I use FastMmap session storage and would like to change the path for one of my

Re: [Catalyst] different storage for a controller

2010-09-08 Thread Tomas Doran
On 8 Sep 2010, at 14:53, rahed wrote: in MyApp.pm I have: __PACKAGE->config(session => {storage => '/tmp/mystorage'}); I use FastMmap session storage and would like to change the path for one of my controller. I tried in myapp.yml: This question makes no sense. The session storage is per

Re: [Catalyst] How to share a database connection across multiple Catalyst apps?

2010-09-08 Thread Simon Miner
Thanks for the responses, Jason, I don't think reducing the number of database connections will hurt responsiveness. Even though there are 3 separate Catalyst apps, each HTTP request will only involve one of them (since they all run out of the same web server), so there should never be contention

[Catalyst] different storage for a controller

2010-09-08 Thread rahed
Hi, in MyApp.pm I have: __PACKAGE->config(session => {storage => '/tmp/mystorage'}); I use FastMmap session storage and would like to change the path for one of my controller. I tried in myapp.yml: 'Controller::Start::Abc:' session: storage: '/tmp/mystorage2' But the storage remains unch