Re: [squid-users] HTTP requests

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 06 Feb 2003 22:32:19 +0100

Marc Elsen wrote:

> > How does Squid know that all the objects have been requested and that
> > the socket should be closed? What determines this?
>
> It doesn't ,the browser (or client) will tell squid when it is
> finished
> asking for objects.

Squid will close the connection if the browser does not make use of it
in a timely fashion.. see your squid.conf..

> > Is it possible for a user to request URL B, and this URL is handled via
> > the same socket as URL A was? How does Squid take care of this?
>
> That is irrelevant. In TCP two seperate connection to a remote
> box can not use the same socket.

Not fully. The connection may be persistent, in which case the second
request is processed after the first on the same TCP connection. If
multiple requests are sent over the same TCP connection after each other
then HTTP specifies that the replies are sent back in the same order.

Regards
Henrik
Received on Thu Feb 06 2003 - 14:42:25 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:16 MST