]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: client writer, part 2, accounting + logging
authorStefan Eissing <stefan@eissing.org>
Mon, 23 Oct 2023 08:33:07 +0000 (10:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Nov 2023 12:14:06 +0000 (13:14 +0100)
commitad051e1cbec68b2456a22661bf0800d49d085294
tree9a0c0b9b71127b709bfff6fd502d861634d4d3fe
parent2b16b86bb6a70c88b727a8299cfe0a2fc6c3dba5
lib: client writer, part 2, accounting + logging

This PR has these changes:

Renaming of unencode_* to cwriter, e.g. client writers
- documentation of sendf.h functions
- move max decode stack checks back to content_encoding.c
- define writer phase which was used as order before
- introduce phases for monitoring inbetween decode phases
- offering default implementations for init/write/close

Add type paramter to client writer's do_write()
- always pass all writes through the writer stack
- writers who only care about BODY data will pass other writes unchanged

add RAW and PROTOCOL client writers
- RAW used for Curl_debug() logging of CURLINFO_DATA_IN
- PROTOCOL used for updates to data->req.bytecount, max_filesize checks and
  Curl_pgrsSetDownloadCounter()
- remove all updates of data->req.bytecount and calls to
  Curl_pgrsSetDownloadCounter() and Curl_debug() from other code
- adjust test457 expected output to no longer see the excess write

Closes #12184
20 files changed:
lib/c-hyper.c
lib/cf-h1-proxy.c
lib/content_encoding.c
lib/content_encoding.h
lib/file.c
lib/imap.c
lib/ldap.c
lib/mqtt.c
lib/openldap.c
lib/progress.c
lib/rtsp.c
lib/sendf.c
lib/sendf.h
lib/smb.c
lib/tftp.c
lib/transfer.c
lib/urldata.h
lib/vssh/libssh.c
lib/vssh/libssh2.c
tests/data/test457