Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

CURL.SetOptionUploadBufferSize

Set preferred upload buffer size.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 8.5 Yes Yes Yes Yes Yes
MBS( "CURL.SetOptionUploadBufferSize"; curl; Value )   More

Parameters

Parameter Description Example value
curl The CURL session handle. $curl
Value The new buffer size.

Result

Returns OK or error.

Description

Set preferred upload buffer size.
Pass an integer specifying your preferred 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 set is 2 megabytes. The minimum buffer size allowed to be set is 16 kilobytes.

Since curl 7.61.1 the upload buffer is allocated on-demand - so if the handle isn't used for upload, this buffer will not be allocated at all.

See also UPLOAD_BUFFERSIZE option in CURL manual.

See also

Created 31st October 2018, last changed 31st October 2018


CURL.SetOptionUpload   -   CURL.SetOptionUseSSL

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins