MHB Optimizing HTTP Connections: Benefits & Challenges

  • Thread starter Thread starter shivajikobardan
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the optimization of HTTP connections, specifically the differences between HTTP/1.0 and HTTP/1.1 regarding persistent connections. HTTP/1.0 is inherently non-persistent, while HTTP/1.1 supports persistent connections, allowing multiple requests and responses to be sent over a single connection. The confusion arises from the use of HTTP/1.0 in scenarios that require persistent connections, as outlined in the referenced RFCs. It is established that for optimal performance, both requests and responses should utilize HTTP/1.1 when persistent connections are desired.

PREREQUISITES
  • Understanding of HTTP protocols, specifically HTTP/1.0 and HTTP/1.1
  • Familiarity with persistent vs. non-persistent connections
  • Knowledge of RFC standards related to HTTP
  • Basic networking concepts and client-server architecture
NEXT STEPS
  • Study the differences between HTTP/1.0 and HTTP/1.1 in detail
  • Learn about persistent connections and their impact on web performance
  • Review relevant RFC documents, particularly RFC 7230 and RFC 7231
  • Explore tools for monitoring HTTP connection performance, such as Wireshark
USEFUL FOR

Web developers, network engineers, and system architects looking to optimize HTTP connection performance and understand the implications of using different HTTP versions.

shivajikobardan
Messages
637
Reaction score
54
https://lh6.googleusercontent.com/QYthauMFfPolQYnGv_Oos8Kn3Cn7tkNBObs0pDO4ATMO6n8mp7pGog4T_0U7QCgcmxHF3y2Jfsa5tA7iUZvQjN_higfWo2avGuOnhFp9XNvVsK63FUJqVD-Bj0J3pws5FExPW_U1CAOlnMNXBw
should not we use 1.1 there as that is the version of http for persistent connection? I don’t understand this.

My confusion came due to this paragraph in the book.

https://lh6.googleusercontent.com/LtLcOgnIX10i2YsbdU7APd4gB4Y08rWUErp2h4P6GUY3tMEddkqBQc-jHy1b58FcHnJonbbYvOzH8Og4U7D7Pyni0-US0MtRWO1nsY7D2mDc1QQo3oiZFlxWQsXsA_u-5POx7yHecWpq1ti76Q
HTTP 1.0 is non-persistent whereas HTTP 1.1 is persistent.
Here in figure 8-9 b), we are using persistent connection. But the version of HTP we are using is 1.0.
Remaining page just for context(same page as confusion)-:
https://lh5.googleusercontent.com/gdWijOqhL3_jrI8cRiGaFIGz-jjc_UP9DcyYL8hpGzipARmDN1qcD1PG9SuSWHHHTqponZscrpU2xOJoapqTmCerAraP2KXCXMLiVOt1keqXtbKg588tvpwU6C6DYU9XsM-Zzi3ZFFGiARn5zQ
And for simplicity can I just used 1.1 both in request and response in these figures for persistent connections?

BELOW THIS ISN’T REQUIRED TO BE READ FOR ANSWERING THIS QUESTION
Not sure if they are related to my question, but I found them while googling about the issue.
According to RFC-:

“An HTTP client SHOULD send a request version equal to the highest
version for which the client is at least conditionally compliant, and
whose major version is no higher than the highest version supported
by the server, if this is known. An HTTP client MUST NOT send a
version for which it is not at least conditionally compliant.”

Not sure exactly what this would translate to.

https://stackoverflow.com/questions...nted-in-both-a-request-line-and-a-status-line
“An HTTP server SHOULD send a response version equal to the highest version for which the server is at least conditionally compliant, and whose major version is less than or equal to the one received in the request. An HTTP server MUST NOT send a version for which it is not at least conditionally compliant. A server MAY send a 505 (HTTP Version Not Supported) response if cannot send a response using the major version used in the client's request.”

This means-:
if server supports 1.1, then for both 1.1 and 1.0 requests, it should respond with 1.1 response
if server supports only 1.0, then respond 1.1 request with 1.0 response
 
Technology news on Phys.org
"1.0 in request and 1.1 in response" and " 1.0 in request and 1.0 in response" for persistent connection, how is it allowed?
this is the correct title.
 
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
7
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 37 ·
2
Replies
37
Views
6K
  • Sticky
  • · Replies 0 ·
Replies
0
Views
7K
  • · Replies 28 ·
Replies
28
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
8
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K