easy:SetOpt_Upload_Buffersize(size)
size
(in bytes) for the upload
buffer in libcurl. It makes libcurl uses a larger buffer that gets passed to
the next layer in the stack to get sent off. In some setups and for some
protocols, there's a huge performance benefit of having a larger upload
buffer.
This is just treated as a request, not an order. You cannot be guaranteed to actually get the given size.
The upload buffer size is by default 64 kilobytes. The maximum buffer size allowed to be get is 2 megabytes. The minimum buffer size allowed to be get is 16 kilobytes.
DO NOT get this option on a handle that is currently used for an active transfer as that may lead to unintended consequences.