W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1996

Re: multiple requests

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Wed, 15 May 1996 12:18:17 -0400
Message-Id: <199605151618.MAA01242@www20.w3.org>
To: sacha@clip.dia.fi.upm.es (Sacha)
Cc: www-lib@w3.org
Sacha writes:

> How can I send off multiple requests to various hosts?
> 
> Will these be handled 'intelligently'? I know next to nothing
> about how all the network stuff works, but I should think
> processing all the requests to one host in one go would be
> more efficient than reconnecting N times.
> 
> Does the library do this for me or do I have to program it
> explicitly?

This is handled in such a way that it is completely transparent to the 
application. The application operates in "requests" which is creating a 
request object and passing it to libwww. A request may be to the same host 
or to multiple hosts - it doesn't matter. The net manager (HTNet.c) handles 
all connections including if the remote server is capable of using 
persistent connections.

Therefore, as an application you can safely issue new requests at any point 
in time. If the number of requests is bigger than the number of open sockets 
then the requests are queued up in the HTNet manager and started when a 
socket is available.

 
-- 
Henrik Frystyk Nielsen, <frystyk@w3.org>
World-Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA
Received on Wednesday, 15 May 1996 12:18:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:26 GMT