]> git.ipfire.org Git - thirdparty/curl.git/commit
winsock: move SO_SNDBUF update into cf-socket
authorStefan Eissing <stefan@eissing.org>
Fri, 24 May 2024 08:09:32 +0000 (10:09 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 29 May 2024 17:23:15 +0000 (13:23 -0400)
commit0b520e125081096f174788cc599d49b19796e6d8
tree0a8089e149c5ba9c3fcbdeadce65e65cc9a550d2
parent2b52fe4115e930e94dae75329bd0c11c79880176
winsock: move SO_SNDBUF update into cf-socket

- Move the code that updates the SO_SNDBUF size for Windows to
  cf_socket_send.

Prior to this change the code was in readwrite_upload but the socket
filter is the more appropriate place because it applies to all sends.

Background:

For Windows users SO_SNDBUF (the total per-socket buffer size reserved
by Winsock for sends) is updated dynamically by libcurl during the
transfer. This is because Windows does not do it automatically for
non-blocking sockets and without it the performance of large transfers
may suffer.

Closes https://github.com/curl/curl/pull/13763
lib/cf-socket.c
lib/transfer.c
lib/urldata.h