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

error correction #49

Merged
merged 23 commits into from
Jul 12, 2019
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
abace60
correct typos
StoneLyu May 7, 2019
f62deb8
Add translations
StoneLyu May 7, 2019
7d5f538
新增HTTP/1.0, HTTP/1.1, HTTP/2的对比
StoneLyu May 10, 2019
978f0e6
增加HTTP/1.1和HTTP/2的性能对比的Demo
StoneLyu May 10, 2019
badd1b1
翻译大部分基础数据结构,但是REACT部分没有翻译
StoneLyu May 10, 2019
45c53b5
update description of `HTTP/1.0`
StoneLyu May 29, 2019
53bd464
add WIP tag, update some translation details
StoneLyu May 29, 2019
7f6d697
Merge remote-tracking branch 'azl/master'
StoneLyu Jun 3, 2019
a888630
change 'fundamental' to 'basic'
StoneLyu Jun 5, 2019
76689b7
remove some trivial details about HTTP/1.0
StoneLyu Jun 5, 2019
83b48c0
Merge remote-tracking branch 'azl/master'
StoneLyu Jun 6, 2019
78d4f4b
Merge remote-tracking branch 'azl/master'
StoneLyu Jun 17, 2019
6e2add0
Merge remote-tracking branch 'azl/master'
StoneLyu Jun 20, 2019
1cb943e
error correction
StoneLyu Jun 21, 2019
2871ad1
translation for DP
StoneLyu Jun 21, 2019
2993775
Merge remote-tracking branch 'azl/master'
StoneLyu Jun 21, 2019
987d03b
translation for string problems
StoneLyu Jun 21, 2019
0526ab4
Merge remote-tracking branch 'azl/master'
StoneLyu Jun 21, 2019
10b87c1
Merge remote-tracking branch 'azl/master'
StoneLyu Jun 22, 2019
1574660
Merge remote-tracking branch 'azl/master'
StoneLyu Jul 8, 2019
aa90d5e
Merge remote-tracking branch 'azl/master'
StoneLyu Jul 9, 2019
da21132
error correction
StoneLyu Jul 11, 2019
f4f1e53
Merge remote-tracking branch 'azl/master'
StoneLyu Jul 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update description of HTTP/1.0
  • Loading branch information
StoneLyu committed May 29, 2019
commit 45c53b5d115b34013e7fed8869fe5d46b515fec4
2 changes: 1 addition & 1 deletion thinkings/basic-data-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ React 将`如何确保组件内部hooks保存的状态之间的对应关系`这
![basic-data-structure-queue-1](../assets/thinkings/basic-data-structure-queue-1.png)

`HTTP/1.0` 和 `HTTP/1.1`:
在`HTTP/1.0` 中每一次请求都需要建立一个TCP连接,请求结束后立即断开连接。而且下一个包必须在收到前一个包的ACK之后才能发送
在`HTTP/1.0` 中每一次请求都需要建立一个TCP连接,请求结束后立即断开连接。而且下一个包必须在收到前一个包的响应之后才能发送
在`HTTP/1.1` 中,每一个连接都默认是长连接(persistent connection)。对于同一个tcp连接,允许一次发送多个http1.1请求,也就是说,不必等前一个响应收到,就可以发送下一个请求。这样就解决了http1.0的客户端的队头阻塞,而这也就是`HTTP/1.1`中`管道(Pipeline)`的概念了。
但是,`http1.1规定,服务器端的响应的发送要根据请求被接收的顺序排队`,也就是说,先接收到的请求的响应也要先发送。这样造成的问题是,如果最先收到的请求的处理时间长的话,响应生成也慢,就会阻塞已经生成了的响应的发送。也会造成队头阻塞。
可见,http1.1的队首阻塞发生在服务器端。
Expand Down