Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.93k stars 553 forks source link

Using HTTP::Daemon with Perl 5.8.0 cuts off web pages. #6125

Closed p5pRT closed 21 years ago

p5pRT commented 21 years ago

Migrated from rt.perl.org#18902 (status was 'resolved')

Searchable as RT18902$

p5pRT commented 21 years ago

From mozart@ryanspc.com

I have used Perl 5.00503 and Perl 5.6.1 to run a single-connection web-server for a few years now\, and have never had a problem. Recently however\, after building Perl 5.8.0 for Win32\, I ran into a severe problem. After a web page is sent across\, it gets truncated/cut-off by the time it reaches the Browser. This happens for any browser\, whether it be Netscape or IE on Windows\, or Netscape on UNIX.

I downloaded the Perl 5.8.0 binary distribution\, to see if perhaps there was a build problem on my machine in particular\, but the exact same problem occurs.

NOTE​: I also built Perl 5.8.0 for several UNIX platforms (Solaris\, DecAlpha\, HPUX\, AIX\, Linux for x86\, Linux for s390\, Reliant/Sinix\, and Sequent/Dynix) and didn't have this problem on any of those.

I thought this might be related to Ticket #16234\, but setting the environment variable "PERLIO" to "​:raw" doesn't fix the problem. The pages are actually losing A LOT of the webpages\, between 2/3 and 3/4. Any ideas on what might be the problem here?

p5pRT commented 21 years ago

From mozart@ryanspc.com

Please see ticket #18905 instead. A more complete report\, along with configuration information\, is posted there.

[m0zart - Thu Dec 5 10​:24​:29 2002]​:

I have used Perl 5.00503 and Perl 5.6.1 to run a single-connection web-server for a few years now\, and have never had a problem.
Recently however\, after building Perl 5.8.0 for Win32\, I ran into a severe problem. After a web page is sent across\, it gets truncated/cut-off by the time it reaches the Browser. This happens for any browser\, whether it be Netscape or IE on Windows\, or Netscape on UNIX.

I downloaded the Perl 5.8.0 binary distribution\, to see if perhaps there was a build problem on my machine in particular\, but the exact same problem occurs.

NOTE​: I also built Perl 5.8.0 for several UNIX platforms (Solaris\, DecAlpha\, HPUX\, AIX\, Linux for x86\, Linux for s390\, Reliant/Sinix\, and Sequent/Dynix) and didn't have this problem on any of those.

I thought this might be related to Ticket #16234\, but setting the environment variable "PERLIO" to "​:raw" doesn't fix the problem. The pages are actually losing A LOT of the webpages\, between 2/3 and 3/4. Any ideas on what might be the problem here?

p5pRT commented 21 years ago

mozart@ryanspc.com - Status changed from 'new' to 'deleted'

p5pRT commented 21 years ago

From @rspier

Michael Doughty (via RT) writes​:

# New Ticket Created by Michael Doughty # Please include the string​: [perl #18902] # in the subject line of all future correspondence about this issue. # \<URL​: http​://rt.perl.org/rt2/Ticket/Display.html?id=18902 >

The author has killed this ticket and resubmitted it as 18905.

-R

p5pRT commented 21 years ago

@rspier - Status changed from 'open' to 'resolved'

p5pRT commented 21 years ago

From mozart@ryanspc.com

I have used Perl 5.00503 and Perl 5.6.1 in combination with the HTTP​::daemon to run a single-connection webserver for a few years now\, and have never had a problem. Recently however\, after building Perl 5.8.0 for Win32\, I ran into a severe problem. After a web page is sent across\, it gets truncated/cut-off by the time it reaches the Browser. This happens for any browser\, whether it be Netscape or IE on Windows\, or Netscape on UNIX.

I downloaded the Perl 5.8.0 binary distribution\, to see if perhaps there was a build problem on my machine in particular\, but the exact same problem occurs.

I thought this might be related to Ticket #16234\, but setting the environment variable "PERLIO" to "​:raw" doesn't fix the problem. The pages are actually losing A LOT of the webpages\, between 2/3 and 3/4.

I am sending this to "core" rather than "libraries" because the bug seems to be deeper in Perl's IO layer\, rather than a part of the HTTP/Daemon.pm module.

NOTE​: I also built Perl 5.8.0 for several UNIX platforms (Solaris\, DecAlpha\, HPUX\, AIX\, Linux for x86\, Linux for s390\, Reliant/Sinix\, and Sequent/Dynix) and didn't have this problem on any of those.

Perl Info ``` Flags: category=core severity=critical Site configuration information for perl v5.8.0: Configured by p4build at Fri Nov 1 13:15:47 2002. Summary of my perl5 (revision 5 version 8 subversion 0) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=undef usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX', optimize='-MD -DNDEBUG -O1', cppflags='-DWIN32' ccversion='', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -release -libpath:"d:\BUILD_TOOLS\CI_Perl58\lib\CORE" -machine:x86' libpth=\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib gnulibc_version='undef' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release -libpath:"d:\BUILD_TOOLS\CI_Perl58\lib\CORE" -machine:x86' Locally applied patches: @INC for perl v5.8.0: D:/BUILD_TOOLS/CI_Perl58/lib D:/BUILD_TOOLS/CI_Perl58/site/lib . Environment for perl v5.8.0: HOME=d:\BUILD_TOOLS LANG (unset) LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=C:\jdk1.3\bin;C:\WINNT\perl\bin\;C:\WINNT\system32;C:\WINNT;C:\jdk1.3\bin;C:\usr\local\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;c:\mksnt;C:\Program Files\Common Files\InstallShield\;C:\Program Files\HTML Help Workshop;D:\PATROL\bin;D:\PATROL\symbols PERL_BADLANG (unset) SHELL (unset) ```
p5pRT commented 21 years ago

@jhi - Status changed from 'open' to 'resolved'