In non-persistent HTTP, a brand new TCP connection must be established and maintained for each requested object. When a user requests a Web page (for example clicks on a hyperlink). Suppose the web page consists of a base HTML file and 10 JPEG images. So in case of non-persistent HTTP, 11 TCP connections are generated.
In case of persistent HTTP, the server leaves the TCP connection open after sending a response. Subsequent requests and responses between the same client and server can be sent over the same connection. So, the entire web page (11 objects) can be sent over a single persistent connection.
No comments:
Post a Comment