httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Warren" <wazisonl...@hotmail.com>
Subject Re: [users@httpd] IE closing connection with PERL CGI output
Date Sun, 22 Sep 2002 18:42:21 GMT
Thanks for your reply but,

The script is called with an <!-- #include virtual and so does not need to
use content-type headers. I have other script called this way that output
only a single line and they never fail. Or am I wrong in thinking this?

I'm not attempting to stream MP3's, I already use Apache::MP3 for other
work.

There is no runtime failure in the script. I can run any of the scripts that
have this problem from the command line with no errors. Indeed, they
occaisonally load into explorer..

I am aware of the lack of error checking within the script.

All of these points are covered in my email.

Matt.


----- Original Message -----
From: "Jeff Beard" <jeff@cyberxape.com>
To: <users@httpd.apache.org>
Sent: Sunday, September 22, 2002 7:23 PM
Subject: Re: [users@httpd] IE closing connection with PERL CGI output


> 1. The Content-type header for MP3 files isn't being emitted by your
> script which it needs to so that the browser knows what to do with the
> file it's being fed.
>
> 2. If there is a runtime failure in the script (for example while
> reading a directory) there isn't any exception handling so that you
> would know that there was a problem (try perldoc -f die && perldoc
> Carp). At the very least the Perl script should start like this:
>
> #!/path/to/perl -w
>
> use strict;
>
> For further information on programming Perl, I recommend "Learning Perl"
> from O'Reilly.
>
> 3. Lastly, I would figure out how to install mod_perl with Apache then
> use Apache::MP3. It does most of what you might want to steam MP3's
> using Apache and you don't have to write yourself.
>
> --Jeff
>
> Matthew Warren wrote:
> > This is a sensible re-post of my previous problem.
> >
> >
> > Hi People,
> >
> > I have a problem when trying to recieve perl generated output called
with
> > <!--#include virtual from within an HTML file asked for by IE.
> >
> > IE Appears to continually re-load the page in quick succession before
> > either;
> >
> > displaying the page ok (rarely)
> > displaying the page corrupted (now and again)
> > returning 'This page cannot be displayed' error (Most of the time)
> >
> >
> > I have tried the following;
> >
> > Get the page to load, save from IE as .html or .mht. The page loads Ok
into
> > iexplorer every time.
> >
> > Run the perl CGI script from a cmd window, it runs ok every time.
> >
> >
> > I have set the Apache errorlogging level to debug, I get the following
in
> > the Apache error log;
> >
> > [Sun Sep 22 17:13:38 2002] [info] (32554)An existing connection was
forcibly
> > closed by the remote host.  : core_output_filter: writing data to the
> > network
> > [Sun Sep 22 17:13:38 2002] [info] (32554)An existing connection was
forcibly
> > closed by the remote host.  : core_output_filter: writing data to the
> > network
> > [Sun Sep 22 17:13:38 2002] [info] (32554)An existing connection was
forcibly
> > closed by the remote host.  : core_output_filter: writing data to the
> > network
> > [Sun Sep 22 17:13:38 2002] [info] (32554)An existing connection was
forcibly
> > closed by the remote host.  : core_output_filter: writing data to the
> > network
> > [Sun Sep 22 17:13:38 2002] [info] (32554)An existing connection was
forcibly
> > closed by the remote host.  : core_output_filter: writing data to the
> > network
> > [Sun Sep 22 17:13:38 2002] [info] (32554)An existing connection was
forcibly
> > closed by the remote host.  : core_output_filter: writing data to the
> > network
> > [Sun Sep 22 17:13:39 2002] [info] (32554)An existing connection was
forcibly
> > closed by the remote host.  : core_output_filter: writing data to the
> > network
> >
> >
> > I will recieve lots of these lines whenever the page tries to load and
> > fails.
> >
> >
> > The environment is;
> > Apache 2.0.39, ActivePERL, Win XP Pro fully updated as per MS
auto-updates.
> > IE6.
> >
> > The Apache server, ActivePERL and IE6 are all running on the same
machine.
> > The same problems occurr if I use a different machine with the same IE
> > version elsewhere on the LAN.
> >
> >
> > The simplest perl script I have that exhibits this problem is the
following;
> > (No work of art, etc..)
> >
> > #!C:\Program files\perl\bin\perl.exe
> >
> > @playlistfolders=("c:\\mymusi~1\\softer\\","C:\\mymusi~1\\harder\\");
> >
> >
> > foreach $dirname (@playlistfolders)
> > {
> >  opendir(LISTDIR,$dirname);
> >  @entries=readdir(LISTDIR);
> >  closedir(LISTDIR);
> >  @mp3s = @entries;
> >  @filtered = grep(/\.mp3$/, @mp3s);
> >  foreach $song (@filtered)
> >  {
> >
> >    $song =~ s/\.mp3/ /g;
> >    $song =~ s/\.wav/ /g;
> >    print '<input type="checkbox" name="';
> >    print "$song";
> >    print '" value="checkbox">';
> >    print "$song";
> >    print '<br clear="left">';
> >
> >  }
> >
> > }
> >
> >
> >
> > Any help would be much appreciated. It's killing me trying to write and
test
> > a perl script when IE keeps screwing up!
> >
> >
> > Thanks,
> >
> > Matthew.
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
> --
> --
> Jeff Beard | Systems Architecture, Programming, Management
> Contact    | jeff at cyberxape dot com, 303.443.9339
> Location   | In front of the computer, Boulder, CO, USA
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message