Mosaic 2.0 in CPU loop.

"Fred Zwarts, KVI, Groningen, NL." <F.Zwarts@kvi.nl>
Date: Tue, 30 Nov 1993 09:15:17 +0000 (WET)
From: "Fred Zwarts, KVI, Groningen, NL." <F.Zwarts@kvi.nl>
Subject: Mosaic 2.0 in CPU loop.
Sender: "Fred Zwarts, KVI, Groningen, NL." <ZWARTS@kvi.nl>
To: www-talk@nxoc01.cern.ch
Cc: ZWARTS@kvi.nl
Message-id: <01H5X61BGIMA95NPMZ@KVI.nl>
X-Ps-Qualifiers: /FORM=A4/LEFT_MARGIN=36/TOP_MARGIN=36
X-Envelope-To: www-talk@info.cern.ch
X-Vms-To: IN%"www-talk@info.cern.ch"
X-Vms-Cc: ZWARTS
Mime-Version: 1.0
Content-Transfer-Encoding: 7BIT
I have a problem with Mosaic 2.0 under VMS. It enters a CPU loop when I access
a Gopher HTML document which has an inline image for which the URL is specified
as "./Logo.gif". The CPU loop is probably caused by an improper Gopher type for
a gif file. I am not sure whether this is general Mosaic problem or a problem
specific for the VMS version.

I would like to know the best way to fix it. I made the following change:

************
File KVI$ROOT:[KVIMAIN.WWW.MOSAIC2-0.SRC]GIFREAD.C;2
  363   /*	while (GetDataBlock(fd, (unsigned char*) buf) != 0) F.Z. */
  364   	while (GetDataBlock(fd, (unsigned char*) buf) > 0)
  365   		;
******
File KVI$ROOT:[KVIMAIN.WWW.MOSAIC2-0.SRC]GIFREAD.C_ORIGINAL;1
  363   	while (GetDataBlock(fd, (unsigned char*) buf) != 0)
  364   		;
************

because it turned out that GetDataBlock kept returning a value of -1. This now
prevents the CPU loop, but the inline images are not displayed correctly. Is
there a better way to fix it? Or is the only hope that that the owner of the
document fixes the URL for the image?

Fred Zwarts	KVI, Groningen, Netherlands	Internet:	F.Zwarts@KVI.nl
Phone:		(+31)50-633619			Telefax:	(+31)50-634003
X400:		C=nl;ADMD=400net;PRMD=surf;O=KVI;S=Zwarts;G=Fred