Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
d9a1a59f
Commit
d9a1a59f
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
CURL_MAX_WRITE_SIZE is a new exported define that informs about the biggest
sized buffer that may be passed to a write callback
parent
0b898b5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/libcurl/curl_easy_setopt.3
+3
-2
3 additions, 2 deletions
docs/libcurl/curl_easy_setopt.3
include/curl/curl.h
+2
-0
2 additions, 0 deletions
include/curl/curl.h
lib/urldata.h
+1
-1
1 addition, 1 deletion
lib/urldata.h
with
6 additions
and
3 deletions
docs/libcurl/curl_easy_setopt.3
+
3
−
2
View file @
d9a1a59f
...
...
@@ -2,7 +2,7 @@
.\" nroff -man [file]
.\" $Id$
.\"
.TH curl_easy_setopt 3 "3
0 Apr
2002" "libcurl 7.9.6" "libcurl Manual"
.TH curl_easy_setopt 3 "3
May
2002" "libcurl 7.9.6" "libcurl Manual"
.SH NAME
curl_easy_setopt - Set curl easy-session options
.SH SYNOPSIS
...
...
@@ -60,7 +60,8 @@ Set the \fIstream\fP argument with the \fBCURLOPT_FILE\fP option.
\fBNOTE:\fP you will be passed as much data as possible in all invokes, but
you cannot possibly make any assumptions. It may be one byte, it may be
thousands.
thousands. The maximum amount of data that can be passed to the write callback
is defined in the curl.h header file: CURL_MAX_WRITE_SIZE.
.TP
.B CURLOPT_INFILE
Data pointer to pass to the file read function. Note that if you specify the
...
...
This diff is collapsed.
Click to expand it.
include/curl/curl.h
+
2
−
0
View file @
d9a1a59f
...
...
@@ -86,6 +86,8 @@ typedef int (*curl_progress_callback)(void *clientp,
double
ultotal
,
double
ulnow
);
#define CURL_MAX_WRITE_SIZE 20480
typedef
size_t
(
*
curl_write_callback
)(
char
*
buffer
,
size_t
size
,
size_t
nitems
,
...
...
This diff is collapsed.
Click to expand it.
lib/urldata.h
+
1
−
1
View file @
d9a1a59f
...
...
@@ -83,7 +83,7 @@
#include
"http_chunks.h"
/* for the structs and enum stuff */
/* Download buffer size, keep it fairly big for speed reasons */
#define BUFSIZE
(1024*20)
#define BUFSIZE
CURL_MAX_WRITE_SIZE
/* Initial size of the buffer to store headers in, it'll be enlarged in case
of need. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment