开发者

How will you design a proxy server that supports HTTP 1.1 keep-alive completely?

开发者 https://www.devze.com 2023-03-08 09:56 出处:网络
It seems even nginx only half supports HTTP 1.1 keep-alive requests: It is an HTTP/1.0 proxy without the

It seems even nginx only half supports HTTP 1.1 keep-alive requests:

It is an HTTP/1.0 proxy without the ability for keep-alive requests yet. (As a result, backend connections are created and destroyed on every request.) Nginx talks HTTP/1.1 to the browser and HTTP/1.0 to the backend server. As such it handles keep-alive to the browser. (source)

Were it you,how would you implement this?

The hardest part I think is how to make the response 开发者_StackOverflowthe same order as requested in keep-alive mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消