]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: upload performance; avoid tiny send
authorGlenn Strauss <gstrauss@gluelogic.com>
Mon, 6 Jun 2022 17:02:30 +0000 (13:02 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Jun 2022 07:42:40 +0000 (09:42 +0200)
commit7f43f3dc5994d01b12eb1dfe2ebf5e8371b4e32b
tree3cfe172d70989c32bd3f4efa239100f1bbf3ebaf
parentaea8ac14df03732e16d2dd98fa0924ed96183812
transfer: upload performance; avoid tiny send

Append to the upload buffer when only small amount remains in buffer
rather than performing a separate tiny send to empty buffer.

Avoid degenerative upload behavior which might cause curl to send mostly
1-byte DATA frames after exhausing the h2 send window size

Related discussion: https://github.com/nghttp2/nghttp2/issues/1722

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
Closes #8965
lib/smtp.c
lib/smtp.h
lib/transfer.c