Curl_client_write() & al.: chop long data, convert data only once.

This commit is contained in:
Patrick Monnerat
2014-12-09 15:43:51 +01:00
parent e63d18fbd1
commit 6ea4ee94f9
3 changed files with 102 additions and 133 deletions

View File

@@ -51,6 +51,8 @@ void Curl_failf(struct SessionHandle *, const char *fmt, ...);
#define CLIENTWRITE_HEADER (1<<1)
#define CLIENTWRITE_BOTH (CLIENTWRITE_BODY|CLIENTWRITE_HEADER)
CURLcode Curl_client_chop_write(struct connectdata *conn, int type, char *ptr,
size_t len) WARN_UNUSED_RESULT;
CURLcode Curl_client_write(struct connectdata *conn, int type, char *ptr,
size_t len) WARN_UNUSED_RESULT;