summaryrefslogtreecommitdiff
path: root/lib/dynbuf.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-03 12:19:09 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-03 23:43:24 +0200
commit7f187d897c000ea64d38aa29026a7837a88427df (patch)
tree7ff19bfbdcf179d426539bf10e033e6de537cd8e /lib/dynbuf.h
parent8297978c21646588711000c20aa3f7eaef677e03 (diff)
downloadcurl-7f187d897c000ea64d38aa29026a7837a88427df.tar.gz
h2: repair trailer handling
The previous h2 trailer fix in 54a2b63 was wrong and caused a regression: it cannot deal with trailers immediately when read since they may be read off the connection by the wrong 'data' owner. This change reverts the logic back to gathering all trailers into a single buffer, like before 54a2b63. Reported-by: Tadej Vengust Fixes #5663 Closes #5769
Diffstat (limited to 'lib/dynbuf.h')
-rw-r--r--lib/dynbuf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dynbuf.h b/lib/dynbuf.h
index c80239e29..ecc995755 100644
--- a/lib/dynbuf.h
+++ b/lib/dynbuf.h
@@ -53,11 +53,11 @@ size_t Curl_dyn_len(const struct dynbuf *s);
#define DYN_HAXPROXY 2048
#define DYN_HTTP_REQUEST (128*1024)
#define DYN_H2_HEADERS (128*1024)
-#define DYN_H2_TRAILER 4096
+#define DYN_H2_TRAILERS (128*1024)
#define DYN_APRINTF 8000000
#define DYN_RTSP_REQ_HEADER (64*1024)
#define DYN_TRAILERS (64*1024)
#define DYN_PROXY_CONNECT_HEADERS 16384
#define DYN_QLOG_NAME 1024
-#define DYN_H1_TRAILER DYN_H2_TRAILER
+#define DYN_H1_TRAILER 4096
#endif