On Mar 30, 2000 at 23:20:19 +0200, Honza Pazdziora twiddled the keys to say:
> On Mon, Mar 27, 2000 at 05:05:47PM +0200, Janning Vygen wrote:
>
> > of the page. calling "view page source" only shows half of the content.
> >
> > It does work with some other and smaller files. With huge files (about 50k and
> > lots of table rows and data) its broken.
> >
> > does anybody else notice this strange behaviour of netscape 4.7???
>
> I'm unable to reproduce it here. What happens if you just take the
> content, gzip it off-line and put it on server as html.gz. Will NN
> gunzip is OK? It you do a telnet yourserver 80 and request that file,
> do the headers differ?
If you gzip the file manually then grab .html.gz it works fine. If you
look at the headers they do differ, but manually adding or removing
to/from them in PassFile.pm (just above $r->send_http_header) makes no
difference. NN4.7 still stops at a certain spot.
Interestingly though, it always stops at 16384, the same value set in
PassFile.pm as $BUFFERSIZE. Adjusting that variable up or down makes NN
change accordingly. Apparently 4.7 only "sees" the first gzip'ed
"packet".
This little hack lets 4.7 display correctly on Linux and Win95...
--- PassFile.pm.orig Fri Mar 31 05:10:39 2000
+++ PassFile.pm Fri Mar 31 05:11:07 2000
@@ -30,8 +30,9 @@
my($buf,$read);
local $\;
+ my $size = (stat _)[7];
while (){
- defined($read = sysread($fh, $buf, $BUFFERSIZE)) or return SERVER_ERROR;
+ defined($read = sysread($fh, $buf, $size)) or return SERVER_ERROR;
last unless $read;
print $buf;
}
Rick Myers [EMAIL PROTECTED]
----------------------------------------------------
The Feynman Problem 1) Write down the problem.
Solving Algorithm 2) Think real hard.
3) Write down the answer.