From e0363a47de4972c7d23d87b8f75a683cf0c4271b Mon Sep 17 00:00:00 2001 From: Javier Blazquez Date: Fri, 15 Nov 2019 23:57:45 -0800 Subject: ngtcp2: use overflow buffer for extra HTTP/3 data Fixes #4525 Closes #4603 --- lib/http.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/http.h') 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 }; -- cgit v1.2.3