diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-02 17:04:08 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-04 10:41:06 +0200 |
commit | dae126ff12655fdad0dc0b7b808ace5963d1bd40 (patch) | |
tree | 05ea3a244bf4fc5e35b8f88d4824555c190a647d /lib/urldata.h | |
parent | ed35d6590e72c23c568af1e3b8ac6e4e2d883888 (diff) | |
download | curl-dae126ff12655fdad0dc0b7b808ace5963d1bd40.tar.gz |
http_proxy: ported to use dynbuf instead of a static size buffer
Removes a 16K static buffer from the easy handle. Simplifies the code.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 7eaa3513e..c8966f624 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -788,15 +788,10 @@ struct proxy_info { char *passwd; /* proxy password string, allocated */ }; -#define CONNECT_BUFFER_SIZE 16384 - /* struct for HTTP CONNECT state data */ struct http_connect_state { - char connect_buffer[CONNECT_BUFFER_SIZE]; - int perline; /* count bytes per line */ + struct dynbuf rcvbuf; int keepon; - char *line_start; - char *ptr; /* where to store more data */ curl_off_t cl; /* size of content to read and ignore */ enum { TUNNEL_INIT, /* init/default/no tunnel state */ |