You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Tim Pushor <ti...@crossthread.com> on 2001/10/16 22:59:39 UTC
Output?
Hello,
I am having trouble with a small application (using Apache::ASP). It is an
application that has a few pages that all require input, layed out similar
to a wizard - the user fills in a form, clicks next, and fills in the next
form, clicks next, etc. It is also worth mentioning that this application
uses SSL (via Apache SSL of course).
The last page actually processes a transaction that could take up to 30
seconds. The problem is that the user can navigate through the pages with no
problem, but on the last page, a user will frequently get a 'document
contains no data' error.
I have set the SetEnvIf's as per modssl FAQ - that took care of the huge
amount of problems mainly with IE browsers. Now all browsers are able to use
the application (at least until the last page)..
Two things I am wondering:
1) Could this be keep alive related?
2) I am processing the transaction before outputting anything (in case of
error) - could this be the problem? Should it least output the Content-Type
header? When does Apache::ASP output the header?
Thanks for any and all help!
Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: Output?
Posted by Tim Pushor <ti...@crossthread.com>.
Stephen,
Yes, I have seen this before as well when doing CGI programming. The
interesting thing here is that the transaction is processed sucessfully.
The logic flow in the last page is something like:
1) do sanity check on POST'ed data and data within the $Session and trigger
error if anything looks weird
2) Process the transaction - may take up to 30 seconds
3) Send out an email with transaction details
4) Commence with the ASP page which is to display a message indicating
success
When the thing fails, 1,2,and 3 are sucessfully executed. The transaction
works and I get an email. I never see output in the browser.
If you click submit again on the previous page, it processes another
transaction, and will more than likely than likely display the confirmation
information (but has processed two transactions).
If this was restricted to IE I would suspect SSL problems, but I am seeing
this with both IE and NS 4 (and I think NS 6).
Thanks,
Tim
----- Original Message -----
From: "Stephen Bardsley" <sb...@rlwinc.com>
To: <as...@perl.apache.org>
Sent: Tuesday, October 16, 2001 3:46 PM
Subject: RE: Output?
> Tim:
>
> I have seen this happen most often when a
> script seg faults or suffers some other
> nasty fatality.
>
> Steve
> _____________________
> Stephen Bardsley
> RLW Inc.
> Malta, NY
>
> > -----Original Message-----
> > From: Tim Pushor [mailto:timp@crossthread.com]
> > Sent: Tuesday, October 16, 2001 5:21 PM
> > To: Joshua Chamas
> > Cc: asp@perl.apache.org
> > Subject: Re: Output?
> >
> >
> > Joshua,
> >
> > After thinking about this for a bit, it seems that this is not
> > necessarily a
> > timeout issue as I would probably get a different error message in the
> > browser.
> >
> > I will enable debugging and see where that gets me. It is
> > intermittent, and
> > never seems to fail for me (go figure).
> >
> > Thanks,
> > Tim
> > ----- Original Message -----
> > From: "Joshua Chamas" <jo...@chamas.com>
> > To: "Tim Pushor" <ti...@crossthread.com>
> > Cc: <as...@perl.apache.org>
> > Sent: Tuesday, October 16, 2001 3:06 PM
> > Subject: Re: Output?
> >
> >
> > > Tim Pushor wrote:
> > > >
> > > > The last page actually processes a transaction that could
> > take up to 30
> > > > seconds. The problem is that the user can navigate through the pages
> > with no
> > > > problem, but on the last page, a user will frequently get a
'document
> > > > contains no data' error.
> > > >
> > >
> > > Is there anything in your error_log about this?
> > > Are there any clues if you set Debug to -1 ?
> > > What is the error_log output for that error with
> > > Debug set to -1 for the error request?
> > >
> > > Are you running the latest Apache::ASP ? Try
> > > upgrading and see if it helps.
> > >
> > > > 1) Could this be keep alive related?
> > >
> > > ? Maybe, I always have keep alives turned off, so
> > > can't really tell you.
> > >
> > > > 2) I am processing the transaction before outputting anything (in
case
> > of
> > > > error) - could this be the problem? Should it least output the
> > Content-Type
> > > > header? When does Apache::ASP output the header?
> > > >
> > >
> > > Sure, but you would expect for an error condition in
> > > an ASP script that there would be a server error 500,
> > > not a null document.
> > >
> > > --Josh
> > >
> > > _________________________________________________________________
> > > Joshua Chamas Chamas Enterprises Inc.
> > > NodeWorks Founder Huntington Beach, CA USA
> > > http://www.nodeworks.com 1-714-625-4051
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> > > For additional commands, e-mail: asp-help@perl.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> > For additional commands, e-mail: asp-help@perl.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
RE: Output?
Posted by Stephen Bardsley <sb...@rlwinc.com>.
Tim:
I have seen this happen most often when a
script seg faults or suffers some other
nasty fatality.
Steve
_____________________
Stephen Bardsley
RLW Inc.
Malta, NY
> -----Original Message-----
> From: Tim Pushor [mailto:timp@crossthread.com]
> Sent: Tuesday, October 16, 2001 5:21 PM
> To: Joshua Chamas
> Cc: asp@perl.apache.org
> Subject: Re: Output?
>
>
> Joshua,
>
> After thinking about this for a bit, it seems that this is not
> necessarily a
> timeout issue as I would probably get a different error message in the
> browser.
>
> I will enable debugging and see where that gets me. It is
> intermittent, and
> never seems to fail for me (go figure).
>
> Thanks,
> Tim
> ----- Original Message -----
> From: "Joshua Chamas" <jo...@chamas.com>
> To: "Tim Pushor" <ti...@crossthread.com>
> Cc: <as...@perl.apache.org>
> Sent: Tuesday, October 16, 2001 3:06 PM
> Subject: Re: Output?
>
>
> > Tim Pushor wrote:
> > >
> > > The last page actually processes a transaction that could
> take up to 30
> > > seconds. The problem is that the user can navigate through the pages
> with no
> > > problem, but on the last page, a user will frequently get a 'document
> > > contains no data' error.
> > >
> >
> > Is there anything in your error_log about this?
> > Are there any clues if you set Debug to -1 ?
> > What is the error_log output for that error with
> > Debug set to -1 for the error request?
> >
> > Are you running the latest Apache::ASP ? Try
> > upgrading and see if it helps.
> >
> > > 1) Could this be keep alive related?
> >
> > ? Maybe, I always have keep alives turned off, so
> > can't really tell you.
> >
> > > 2) I am processing the transaction before outputting anything (in case
> of
> > > error) - could this be the problem? Should it least output the
> Content-Type
> > > header? When does Apache::ASP output the header?
> > >
> >
> > Sure, but you would expect for an error condition in
> > an ASP script that there would be a server error 500,
> > not a null document.
> >
> > --Josh
> >
> > _________________________________________________________________
> > Joshua Chamas Chamas Enterprises Inc.
> > NodeWorks Founder Huntington Beach, CA USA
> > http://www.nodeworks.com 1-714-625-4051
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> > For additional commands, e-mail: asp-help@perl.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: Output?
Posted by Tim Pushor <ti...@crossthread.com>.
Joshua,
After thinking about this for a bit, it seems that this is not necessarily a
timeout issue as I would probably get a different error message in the
browser.
I will enable debugging and see where that gets me. It is intermittent, and
never seems to fail for me (go figure).
Thanks,
Tim
----- Original Message -----
From: "Joshua Chamas" <jo...@chamas.com>
To: "Tim Pushor" <ti...@crossthread.com>
Cc: <as...@perl.apache.org>
Sent: Tuesday, October 16, 2001 3:06 PM
Subject: Re: Output?
> Tim Pushor wrote:
> >
> > The last page actually processes a transaction that could take up to 30
> > seconds. The problem is that the user can navigate through the pages
with no
> > problem, but on the last page, a user will frequently get a 'document
> > contains no data' error.
> >
>
> Is there anything in your error_log about this?
> Are there any clues if you set Debug to -1 ?
> What is the error_log output for that error with
> Debug set to -1 for the error request?
>
> Are you running the latest Apache::ASP ? Try
> upgrading and see if it helps.
>
> > 1) Could this be keep alive related?
>
> ? Maybe, I always have keep alives turned off, so
> can't really tell you.
>
> > 2) I am processing the transaction before outputting anything (in case
of
> > error) - could this be the problem? Should it least output the
Content-Type
> > header? When does Apache::ASP output the header?
> >
>
> Sure, but you would expect for an error condition in
> an ASP script that there would be a server error 500,
> not a null document.
>
> --Josh
>
> _________________________________________________________________
> Joshua Chamas Chamas Enterprises Inc.
> NodeWorks Founder Huntington Beach, CA USA
> http://www.nodeworks.com 1-714-625-4051
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: Output?
Posted by Joshua Chamas <jo...@chamas.com>.
Tim Pushor wrote:
>
> The last page actually processes a transaction that could take up to 30
> seconds. The problem is that the user can navigate through the pages with no
> problem, but on the last page, a user will frequently get a 'document
> contains no data' error.
>
Is there anything in your error_log about this?
Are there any clues if you set Debug to -1 ?
What is the error_log output for that error with
Debug set to -1 for the error request?
Are you running the latest Apache::ASP ? Try
upgrading and see if it helps.
> 1) Could this be keep alive related?
? Maybe, I always have keep alives turned off, so
can't really tell you.
> 2) I am processing the transaction before outputting anything (in case of
> error) - could this be the problem? Should it least output the Content-Type
> header? When does Apache::ASP output the header?
>
Sure, but you would expect for an error condition in
an ASP script that there would be a server error 500,
not a null document.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org