Commit 922ada7
http2: add unknownProtocol timeout
This commit add a configuration options named unknownProtocolTimeout
which can be specified to set a value for the timeout in milliseconds
that a server should wait when an unknowProtocol is sent to it. When
this happens a timer will be started and the if the socket has not been
destroyed during that time the timer callback will destoy it.
Refs: https://hackerone.com/reports/1043360
CVE-ID: CVE-2021-22883
PR-URL: nodejs-private/node-private#246
Backport-PR-URL: nodejs-private/node-private#250
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent 1564752 commit 922ada7
File tree
3 files changed
+84
-5
lines changed- doc/api
- lib/internal/http2
- test/parallel
3 files changed
+84
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1970 | 1970 | | |
1971 | 1971 | | |
1972 | 1972 | | |
1973 | | - | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
1974 | 1976 | | |
1975 | 1977 | | |
1976 | 1978 | | |
| |||
2010 | 2012 | | |
2011 | 2013 | | |
2012 | 2014 | | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
2013 | 2018 | | |
2014 | 2019 | | |
2015 | 2020 | | |
| |||
2112 | 2117 | | |
2113 | 2118 | | |
2114 | 2119 | | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
2115 | 2124 | | |
2116 | 2125 | | |
2117 | 2126 | | |
| |||
2148 | 2157 | | |
2149 | 2158 | | |
2150 | 2159 | | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
2151 | 2163 | | |
2152 | 2164 | | |
2153 | 2165 | | |
| |||
2240 | 2252 | | |
2241 | 2253 | | |
2242 | 2254 | | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
2243 | 2259 | | |
2244 | 2260 | | |
2245 | 2261 | | |
| |||
2273 | 2289 | | |
2274 | 2290 | | |
2275 | 2291 | | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
2276 | 2295 | | |
2277 | 2296 | | |
2278 | 2297 | | |
| |||
2356 | 2375 | | |
2357 | 2376 | | |
2358 | 2377 | | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
2359 | 2382 | | |
2360 | 2383 | | |
2361 | 2384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
2829 | 2829 | | |
2830 | 2830 | | |
2831 | 2831 | | |
2832 | | - | |
| 2832 | + | |
2833 | 2833 | | |
2834 | 2834 | | |
2835 | 2835 | | |
2836 | 2836 | | |
2837 | 2837 | | |
2838 | | - | |
2839 | | - | |
| 2838 | + | |
| 2839 | + | |
2840 | 2840 | | |
2841 | 2841 | | |
2842 | 2842 | | |
| |||
2896 | 2896 | | |
2897 | 2897 | | |
2898 | 2898 | | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
2899 | 2915 | | |
2900 | 2916 | | |
2901 | 2917 | | |
| |||
2944 | 2960 | | |
2945 | 2961 | | |
2946 | 2962 | | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
2947 | 2970 | | |
2948 | 2971 | | |
2949 | 2972 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments