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
d52c0b6f
Commit
d52c0b6f
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
more comments
parent
3ff2bfa0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/multi.c
+10
-5
10 additions, 5 deletions
lib/multi.c
with
10 additions
and
5 deletions
lib/multi.c
+
10
−
5
View file @
d52c0b6f
...
...
@@ -56,7 +56,7 @@ struct Curl_one_easy {
#define CURL_MULTI_HANDLE 0x000bab1e
#define GOOD_MULTI_HANDLE(x) ((x)
&&
((x)->type == CURL_MULTI_HANDLE))
#define GOOD_MULTI_HANDLE(x) ((x)&&
(
((
struct Curl_multi *)
x)->type == CURL_MULTI_HANDLE))
#define GOOD_EASY_HANDLE(x) (x)
/* This is the struct known as CURLM on the outside */
...
...
@@ -229,11 +229,14 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
switch
(
easy
->
state
)
{
case
CURLM_STATE_INIT
:
/* init this transfer */
easy
->
result
=
Curl_init
(
easy
->
easy_handle
);
/* init this transfer. Hm, uh, I can't think of anything to init
right now, let's skip over to CONNECT at once!
easy->result = Curl_init(easy->easy_handle);
if(CURLE_OK == easy->result)
*/
/* after init, go CONNECT */
if
(
CURLE_OK
==
easy
->
result
)
easy
->
state
=
CURLM_STATE_CONNECT
;
easy
->
state
=
CURLM_STATE_CONNECT
;
break
;
case
CURLM_STATE_CONNECT
:
/* connect */
...
...
@@ -252,6 +255,8 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
case
CURLM_STATE_PERFORM
:
/* read/write data if it is ready to do so */
easy
->
result
=
Curl_readwrite
(
easy
->
easy_handle
,
&
done
);
/* hm, when we follow redirects, we may need to go back to the CONNECT
state */
/* after the transfer is done, go DONE */
if
(
TRUE
==
done
)
easy
->
state
=
CURLM_STATE_DONE
;
...
...
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