mirror of
https://github.com/curl/curl.git
synced 2026-08-26 06:43:31 +03:00
CURLOPT_BUFFERSIZE allows an application to set a prefered buffer size
for receiving data from the network. It is meant as a hint, not as a forced limit.
This commit is contained in:
parent
5cb06d8fd6
commit
e54e0c7877
3 changed files with 17 additions and 1 deletions
|
|
@ -220,7 +220,9 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
|
||||
/* read! */
|
||||
result = Curl_read(conn, conn->sockfd, k->buf,
|
||||
BUFSIZE -1, &nread);
|
||||
data->set.buffer_size?
|
||||
data->set.buffer_size:BUFSIZE -1,
|
||||
&nread);
|
||||
|
||||
if(0>result)
|
||||
break; /* get out of loop */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue