Re: Impossible to request more than one local file?

>>>>> 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