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
63667dfd
Commit
63667dfd
authored
22 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
no TABs in source code
parent
77c388c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/transfer.c
+9
-9
9 additions, 9 deletions
lib/transfer.c
with
9 additions
and
9 deletions
lib/transfer.c
+
9
−
9
View file @
63667dfd
...
...
@@ -317,7 +317,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
}
}
break
;
/* read more and try again */
break
;
/* read more and try again */
}
/* decrease the size of the remaining buffer */
...
...
@@ -459,7 +459,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
FD_ZERO
(
&
k
->
rkeepfd
);
}
break
;
/* exit header line loop */
break
;
/* exit header line loop */
}
/* We continue reading headers, so reset the line-based
...
...
@@ -742,7 +742,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
there might be a non-header part left in the end of the read
buffer. */
}
/* end if header mode */
}
/* end if header mode */
/* This is not an 'else if' since it may be a rest from the header
parsing, where the beginning of the buffer is headers and the end
...
...
@@ -1135,13 +1135,13 @@ CURLcode Curl_readwrite_init(struct connectdata *conn)
/* we want header and/or body, if neither then don't do this! */
if
(
conn
->
bits
.
getheader
||
!
data
->
set
.
no_body
)
{
FD_ZERO
(
&
k
->
readfd
);
/* clear it */
FD_ZERO
(
&
k
->
readfd
);
/* clear it */
if
(
conn
->
sockfd
!=
-
1
)
{
FD_SET
(
conn
->
sockfd
,
&
k
->
readfd
);
/* read socket */
k
->
keepon
|=
KEEP_READ
;
}
FD_ZERO
(
&
k
->
writefd
);
/* clear it */
FD_ZERO
(
&
k
->
writefd
);
/* clear it */
if
(
conn
->
writesockfd
!=
-
1
)
{
if
(
data
->
set
.
expect100header
)
/* wait with write until we either got 100-continue or a timeout */
...
...
@@ -1647,10 +1647,10 @@ CURLcode Curl_perform(struct SessionHandle *data)
CURLcode
Curl_Transfer
(
struct
connectdata
*
c_conn
,
/* connection data */
int
sockfd
,
/* socket to read from or -1 */
int
size
,
/* -1 if unknown at this point */
bool
getheader
,
/* TRUE if header parsing is wanted */
long
*
bytecountp
,
/* return number of bytes read or NULL */
int
sockfd
,
/* socket to read from or -1 */
int
size
,
/* -1 if unknown at this point */
bool
getheader
,
/* TRUE if header parsing is wanted */
long
*
bytecountp
,
/* return number of bytes read or NULL */
int
writesockfd
,
/* socket to write to, it may very well be
the same we read from. -1 disables */
long
*
writebytecountp
/* return number of bytes written or
...
...
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