Remove --false-start flag

Remove the --false-start flag completely. In the Chrome version it has
no affect, and in the Firefox version it may cause connection errors.
This flag doesn't seem to affect TLS or HTTP signatures so is safe to
remove.

The flag seems to cause connection errors with some
http/2 servers. The server chooses http/2 based on alpn but curl
initiates a http/1.1 connection instead. This is an upstream bug in curl
that affects us as well.
This commit is contained in:
lwthiker
2023-09-16 09:09:00 +03:00
parent c7ea3694bb
commit 686cb75967
20 changed files with 20 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.2 --alps \ --tlsv1.2 --alps \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.2 --alps \ --tlsv1.2 --alps \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.2 --alps \ --tlsv1.2 --alps \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --http2-no-server-push --false-start --compressed \ --http2 --http2-no-server-push --compressed \
--tlsv1.2 --alps \ --tlsv1.2 --alps \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --http2-no-server-push --false-start --compressed \ --http2 --http2-no-server-push --compressed \
--tlsv1.2 --alps --tls-permute-extensions \ --tlsv1.2 --alps --tls-permute-extensions \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --http2-no-server-push --false-start --compressed \ --http2 --http2-no-server-push --compressed \
--tlsv1.2 --alps --tls-permute-extensions \ --tlsv1.2 --alps --tls-permute-extensions \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.2 --alps \ --tlsv1.2 --alps \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.2 --alps \ --tlsv1.2 --alps \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.2 --alps \ --tlsv1.2 --alps \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -20,7 +20,7 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.2 --alps \ --tlsv1.2 --alps \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -14,7 +14,7 @@ dir=${0%/*}
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \ -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Language: en-us' \ -H 'Accept-Language: en-us' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.0 --no-tls-session-ticket \ --tlsv1.0 --no-tls-session-ticket \
--http2-pseudo-headers-order 'mspa' \ --http2-pseudo-headers-order 'mspa' \
"$@" "$@"

View File

@@ -14,7 +14,7 @@ dir=${0%/*}
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \ -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \ -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.0 --no-tls-session-ticket \ --tlsv1.0 --no-tls-session-ticket \
--cert-compression zlib \ --cert-compression zlib \
--http2-pseudo-headers-order 'mspa' \ --http2-pseudo-headers-order 'mspa' \

View File

@@ -50,7 +50,7 @@ The important part of the script is:
-H 'Sec-Fetch-Dest: document' \ -H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \ -H 'Accept-Language: en-US,en;q=0.9' \
--http2 --false-start --compressed \ --http2 --compressed \
--tlsv1.2 --no-npn --alps \ --tlsv1.2 --no-npn --alps \
--cert-compression brotli \ --cert-compression brotli \
"$@" "$@"

View File

@@ -18,5 +18,5 @@ dir=${0%/*}
-H 'Sec-Fetch-Site: none' \ -H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-User: ?1' \ -H 'Sec-Fetch-User: ?1' \
-H 'TE: Trailers' \ -H 'TE: Trailers' \
--http2 --false-start --compressed \ --http2 --compressed \
"$@" "$@"

View File

@@ -18,5 +18,5 @@ dir=${0%/*}
-H 'Sec-Fetch-Site: none' \ -H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-User: ?1' \ -H 'Sec-Fetch-User: ?1' \
-H 'TE: Trailers' \ -H 'TE: Trailers' \
--http2 --false-start --compressed \ --http2 --compressed \
"$@" "$@"

View File

@@ -18,5 +18,5 @@ dir=${0%/*}
-H 'Sec-Fetch-Site: none' \ -H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-User: ?1' \ -H 'Sec-Fetch-User: ?1' \
-H 'TE: Trailers' \ -H 'TE: Trailers' \
--http2 --false-start --compressed \ --http2 --compressed \
"$@" "$@"

View File

@@ -18,5 +18,5 @@ dir=${0%/*}
-H 'Sec-Fetch-Site: none' \ -H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-User: ?1' \ -H 'Sec-Fetch-User: ?1' \
-H 'TE: Trailers' \ -H 'TE: Trailers' \
--http2 --false-start --compressed \ --http2 --compressed \
"$@" "$@"

View File

@@ -18,5 +18,5 @@ dir=${0%/*}
-H 'Sec-Fetch-Site: none' \ -H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-User: ?1' \ -H 'Sec-Fetch-User: ?1' \
-H 'TE: Trailers' \ -H 'TE: Trailers' \
--http2 --false-start --compressed \ --http2 --compressed \
"$@" "$@"

View File

@@ -18,5 +18,5 @@ dir=${0%/*}
-H 'Sec-Fetch-Site: none' \ -H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-User: ?1' \ -H 'Sec-Fetch-User: ?1' \
-H 'TE: Trailers' \ -H 'TE: Trailers' \
--http2 --false-start --compressed \ --http2 --compressed \
"$@" "$@"

View File

@@ -18,5 +18,5 @@ dir=${0%/*}
-H 'Sec-Fetch-Site: none' \ -H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-User: ?1' \ -H 'Sec-Fetch-User: ?1' \
-H 'TE: Trailers' \ -H 'TE: Trailers' \
--http2 --false-start --compressed \ --http2 --compressed \
"$@" "$@"