naiveproxy/src
Lin 2e7fbdbb18 net/quic: complete Fast Open response handling in OnIOComplete
With proxy Fast Open, Connect() can complete before the CONNECT
response arrives; the response then ran through OnIOComplete() into the
DoLoop() STATE_PROCESS_RESPONSE_CODE fastopen block, which force-returned
ERR_IO_PENDING. An async header-read failure left the consumed connect
callback to be run with an error (DCHECK in debug, null run in release),
and a pending application read was never completed.

Track the pending header read with std::optional<bool>
read_headers_pending_ (nullopt until Fast Open engages, false once the
read completes) and clear it in OnReadResponseHeadersComplete(). Remove
the STATE_PROCESS_RESPONSE_CODE block and handle the response result in
OnIOComplete(): on failure transition to STATE_DISCONNECTED and complete
a pending application read with the actual error; on success leave the
pending read to the data path.
2026-09-09 20:27:32 +08:00
..
base Support debug build 2026-07-02 23:06:54 +08:00
build openwrt: Disable C++ modules support 2026-07-02 22:58:43 +08:00
build_overrides openwrt, windows: Use PartitionAlloc even in Cronet build to remove dependency on glibc 2026-07-02 22:58:43 +08:00
buildtools musl: libc++: Allow setting musl 2026-07-02 22:58:43 +08:00
chrome chrome: Parrot Google Chrome branding 2026-07-02 22:58:42 +08:00
components components/embedder_support: Trim dependencies 2026-07-02 22:58:42 +08:00
crypto
extensions/buildflags
ios
net net/quic: complete Fast Open response handling in OnIOComplete 2026-09-09 20:27:32 +08:00
testing/gtest/include/gtest
third_party musl: Disable copy_file_range 2026-07-02 22:58:43 +08:00
tools tools: Remove Android arm64 custom profile path 2026-07-02 22:58:42 +08:00
url net, url: Remove icu 2026-07-02 22:58:42 +08:00
.clang-format
.gitattributes
.gn
AUTHORS
BUILD.gn
DEPS
LICENSE
build.sh Add build scripts 2026-07-02 22:58:43 +08:00
config.json Add README 2026-07-02 22:58:43 +08:00
get-android-sys.sh Add continuous integration and tests 2026-07-02 23:06:54 +08:00
get-clang.sh Add build scripts 2026-07-02 22:58:43 +08:00
get-openwrt.sh Add build scripts 2026-07-02 22:58:43 +08:00
get-sysroot.sh Add build scripts 2026-07-02 22:58:43 +08:00