Michael Peters wrote:
Robert L Hicks wrote:
[error] Apache2::RequestIO::print: (104) Connection reset by peer at
/usr/lib/perl5/Template.pm line 178
Doesn't it just mean that the user hit the stop button before finishing the
download of the page? So you were in the middle of writing to the pi
Robert L Hicks wrote:
> [error] Apache2::RequestIO::print: (104) Connection reset by peer at
> /usr/lib/perl5/Template.pm line 178
Doesn't it just mean that the user hit the stop button before finishing the
download of the page? So you were in the middle of writing to the pipe when it
was cut.
[error] Apache2::RequestIO::print: (104) Connection reset by peer at
/usr/lib/perl5/Template.pm line 178
Has anyone seen that before and/or would you know what I need to look at?
Robert
FYI, for those interested, I had to do some code adjustments. There was
a missing right curly bracket in Handler.pm (need to close the sub), and
I wasn't loading DECLINED properly in Handler.pm. Here is the proper
setup:
---
package M
Thank you all for your advice. With that and some help from a mentor, it
is now working, with the below code:
Apache config:
---
PerlSwitches -I/home/Perl/
PerlModule Myserver::Handler
SetHandler modperl
PerlResponseHandler
SetHandler modperl doesn't bind 'print' to '$r->print'. Try SetHandler
perl-script, or change your code to pass in the request object and use
$r->print instead of print.
Adam
-Original Message-
From: xyon [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 11:47 AM
To: modperl
Sub
Hi.
I know it's not clean, and it is probably not what you need to do in the
long run, and I don't know a bit about HTML::Template.
But why don't you try the following, just to check :
> package Myserver::Handler;
>
> #Setup some essentials
> use strict; #strict toleran
Good suggestion, I moved the content_type to the top of the handler
routine in Handler.pm, so it now looks like:
---
sub handler {
my $self= shift;
$self->content_type('text/html');
my $view= Myserver:
Hi.
First, don't take my suggestions as gospel, I don't know the TT2 and do
not really know how you're supposed to work with it.
But it seems to me that this is in the wrong order :
$view->mainpage;
$self->content_type('text/html');
I think you should trigger the HTTP header before yo
Just for clarity's sake, here is the test script command and output:
---
$ tests/View_mainpage.pl
### HTML::Template Debug ### In _parse:
### HTML::Template _param Stack Dump ###
$VAR1 = [
\'Test!
'
];
### HTML::T
Thanks for the reply.
I thought as you did (that there were too many "Content-Type"
definitions), so commented out this line in the View.pm module, but that
doesn't seem to have changed anything:
'print "Content-Type: text/html\n\n";'
Here is the lwp command and output:
--
Hi.
First, a small disgression : along with perl, comes a beautiful test
tool for HTTP stuff, called "lwp-request".
Like, at the command-line :
lwp-request (to see the options)
lwp-request -m GET -Sed "http://myserver/myURL";
(that will show you what you get as a response, without a browser
g
That worked great with the test script ( print $template->output; ), but
unfortunately, I'm having trouble getting the display onto a web page
(via the Handler). The resulting web page is blank, with no source.
Below are my Apache configs for the handler, logs, and the handler and
view module's l
13 matches
Mail list logo