http 1.1 persistent connection

462 Views Asked by At

Http 1.1 uses persistent connections as it has advantage of sending multiple http request using same connection. My concern is with the below guideline:

You must call the Close method to close the stream and release the connection. Failure to do so may cause your application to run out of connections.

Why should I close the stream or connection after receiving response, if same connection is used for multiple httprequest? I am triggering multiple httprequests for same internet resource so why should I close connection/stream/response each time I receive a response?

0

There are 0 best solutions below