Commit eb19b1e
http: be more aggressive to reply 400, 408 and 431
As long as data of the in-flight response is not yet written
to the socket, we can reply an error response without corrupting
the client.
PR-URL: #44818
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>1 parent 67fb765 commit eb19b1eCopy full SHA for eb19b1e
File tree
Expand file treeCollapse file tree
6 files changed
+12
-15
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- test/parallel
Expand file treeCollapse file tree
6 files changed
+12
-15
lines changedOpen diff view settings
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1309 | 1309 | |
1310 | 1310 | |
1311 | 1311 | |
1312 | | - |
1313 | | - |
| 1312 | + |
| 1313 | + |
| 1314 | + |
1314 | 1315 | |
1315 | 1316 | |
1316 | 1317 | |
|
Collapse file
+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
819 | 819 | |
820 | 820 | |
821 | 821 | |
822 | | - |
| 822 | + |
| 823 | + |
| 824 | + |
| 825 | + |
| 826 | + |
823 | 827 | |
824 | 828 | |
825 | 829 | |
|
Collapse file
test/parallel/test-http-server-headers-timeout-keepalive.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-headers-timeout-keepalive.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
81 | 81 | |
82 | 82 | |
83 | 83 | |
84 | | - |
85 | | - |
86 | | - |
| 84 | + |
87 | 85 | |
88 | 86 | |
89 | 87 | |
|
Collapse file
test/parallel/test-http-server-headers-timeout-pipelining.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-headers-timeout-pipelining.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
56 | 56 | |
57 | 57 | |
58 | 58 | |
59 | | - |
60 | | - |
61 | | - |
| 59 | + |
62 | 60 | |
63 | 61 | |
64 | 62 | |
|
Collapse file
test/parallel/test-http-server-request-timeout-keepalive.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-keepalive.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
79 | 79 | |
80 | 80 | |
81 | 81 | |
82 | | - |
83 | | - |
84 | | - |
| 82 | + |
85 | 83 | |
86 | 84 | |
87 | 85 | |
|
Collapse file
test/parallel/test-http-server-request-timeout-pipelining.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-pipelining.js+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
50 | 50 | |
51 | 51 | |
52 | 52 | |
53 | | - |
54 | | - |
55 | | - |
| 53 | + |
56 | 54 | |
57 | 55 | |
58 | 56 | |
|
0 commit comments