diff options
author | Javier Blazquez <jblazquez@riotgames.com> | 2019-11-15 23:57:45 -0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-11-18 16:40:08 +0100 |
commit | e0363a47de4972c7d23d87b8f75a683cf0c4271b (patch) | |
tree | 129f3bc86535044759da6d9bc5e7d28b8bff1f0d /lib/http.h | |
parent | 425c572a19b169df4b2b8eed18f64781ab32e3c0 (diff) | |
download | curl-e0363a47de4972c7d23d87b8f75a683cf0c4271b.tar.gz |
ngtcp2: use overflow buffer for extra HTTP/3 data
Fixes #4525
Closes #4603
Diffstat (limited to 'lib/http.h')
-rw-r--r-- | lib/http.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http.h b/lib/http.h index 87e979ee2..70d5dccec 100644 --- a/lib/http.h +++ b/lib/http.h @@ -193,6 +193,7 @@ struct HTTP { #ifdef ENABLE_QUIC /*********** for HTTP/3 we store stream-local data here *************/ int64_t stream3_id; /* stream we are interested in */ + bool firstheader; /* FALSE until headers arrive */ bool firstbody; /* FALSE until body arrives */ bool h3req; /* FALSE until request is issued */ bool upload_done; @@ -200,6 +201,9 @@ struct HTTP { #ifdef USE_NGHTTP3 size_t unacked_window; struct h3out *h3out; /* per-stream buffers for upload */ + char *overflow_buf; /* excess data received during a single Curl_read */ + size_t overflow_buflen; /* amount of data currently in overflow_buf */ + size_t overflow_bufsize; /* size of the overflow_buf allocation */ #endif }; |