Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第 140 题:为什么 HTTP1.1 不能实现多路复用 #376

Closed
Bellhey opened this issue May 7, 2020 · 0 comments
Closed

第 140 题:为什么 HTTP1.1 不能实现多路复用 #376

Bellhey opened this issue May 7, 2020 · 0 comments

Comments

@Bellhey
Copy link

Bellhey commented May 7, 2020

HTTP/1.1 不是二进制传输,而是通过文本进行传输。由于没有流的概念,在使用并行传输(多路复用)传递数据时,接收端在接收到响应后,并不能区分多个响应分别对应的请求,所以无法将多个响应的结果重新进行组装,也就实现不了多路复用。

Originally posted by @lmjben in #290 (comment)

二进制流概念有点类似于Nodejs里buffer和strem的机制

@yygmind yygmind closed this as completed May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants