W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

Re: Impossible to request more than one local file?

From: Steinar Bang <sb@metis.no>
Date: 17 Sep 1999 09:04:55 +0200
To: www-lib@w3.org
Message-ID: <whemfyyq5k.fsf@viffer.oslo.metis.no>
>>>>> Steinar Bang <sb@metis.no>:

> Platform: CVS checkout of libwww on SuSE linux 5.3, and NT4
> Is it impossible to request more than one local file at any given
> time? 

> Right now my program works fine when loading files over HTTP, and fine
> when loading single local files.  It does not work fine with local
> files that trigger a series of requests for other local files.

> The reason for this is that all other requests than the first one are
> put in the pending list of the "localhost" HTHost object, instead of
> the pipeline.

One thing I tried, was storing a reference to the "localhost" HTHost
object, and do this every time a file is loaded (both local files, and 
remote files loaded over HTTP):
        ...
	HTRequest_delete(request);
	// Schedule new local file if any are pending
	HTNet* pending = HTHost_nextPendingNet(localHost_);
	if (pending)
	    HTHost_addNet(localHost_,pending); 
        ...

This runs for a while, moving pending files to the pipeline one by
one, but it eventually gets stuck with the trace message
        HTLoadFile.. Continuing 0x823f898 with timer 0x8396b00

This trace message is output some 80-odd times earlier where the
program continues as normal (I don't know exactly how many files the
program tries loading, unfortunately).

Any and all ideas appreciated as always!


- Steinar
Received on Friday, 17 September 1999 03:05:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:17 UTC