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
