From 51c0ebcff2140c38ff389b4fcfb8216f5e9d198c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 6 May 2021 13:04:03 +0200 Subject: http: deal with partial CONNECT sends Also added 'CURL_SMALLSENDS' to make Curl_write() send short packets, which helped verifying this even more. Add test 363 to verify. Reported-by: ustcqidi on github Fixes #6950 Closes #7024 --- lib/http.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/http.h') diff --git a/lib/http.h b/lib/http.h index 851e0a382..2a3834ae1 100644 --- a/lib/http.h +++ b/lib/http.h @@ -184,8 +184,7 @@ struct HTTP { enum { HTTPSEND_NADA, /* init */ HTTPSEND_REQUEST, /* sending a request */ - HTTPSEND_BODY, /* sending body */ - HTTPSEND_LAST /* never use this */ + HTTPSEND_BODY /* sending body */ } sending; #ifndef CURL_DISABLE_HTTP -- cgit v1.2.1