Hi!
When going through the 2018 midterm, ex.3 I thought about the following:
Would it make sense, when multiple users are using a proxy server to connect to the same end server in a short timeframe (ie. www.abcd.com), to establish a single TCP connection between the proxy and the end server and route subsequent http requests through this unique connection?
In the exercise, couldn't the proxy reuse its TCP connection it had established for Alice when Bob sends a GET request?
Also, I don't really get when a server decides to close a TCP connection? Is it based on a timeout?
In reply to Malo Ranzetti
Re: Routing multiple users through same TCP connection
by Katerina Argyraki -
Malo,
This is an excellent point. Yes, indeed, the proxy could establish one TCP connection to the origin web server and "route" HTTP requests from multiple web clients through that single TCP connection. That would have been an even better solution (though it was not expected from the students to think of it).
Indeed, a server typically closes a TCP connection to a client after a timeout.