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
3ca36039
Commit
3ca36039
authored
16 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Make the getoff all pipelines function only set _inuse to FALSE if the
specified data pointer was head.
parent
5f0a3797
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/url.c
+18
-14
18 additions, 14 deletions
lib/url.c
with
18 additions
and
14 deletions
lib/url.c
+
18
−
14
View file @
3ca36039
...
...
@@ -2378,20 +2378,6 @@ int Curl_removeHandleFromPipeline(struct SessionHandle *handle,
return
0
;
}
/* remove the specified connection from all (possible) pipelines and related
queues */
void
Curl_getoff_all_pipelines
(
struct
SessionHandle
*
data
,
struct
connectdata
*
conn
)
{
if
(
Curl_removeHandleFromPipeline
(
data
,
conn
->
recv_pipe
)
&&
conn
->
readchannel_inuse
)
conn
->
readchannel_inuse
=
FALSE
;
if
(
Curl_removeHandleFromPipeline
(
data
,
conn
->
send_pipe
)
&&
conn
->
writechannel_inuse
)
conn
->
writechannel_inuse
=
FALSE
;
Curl_removeHandleFromPipeline
(
data
,
conn
->
pend_pipe
);
}
#if 0 /* this code is saved here as it is useful for debugging purposes */
static void Curl_printPipeline(struct curl_llist *pipeline)
{
...
...
@@ -2416,6 +2402,24 @@ static struct SessionHandle* gethandleathead(struct curl_llist *pipeline)
return
NULL
;
}
/* remove the specified connection from all (possible) pipelines and related
queues */
void
Curl_getoff_all_pipelines
(
struct
SessionHandle
*
data
,
struct
connectdata
*
conn
)
{
bool
recv_head
=
conn
->
readchannel_inuse
&&
(
gethandleathead
(
conn
->
recv_pipe
)
==
data
);
bool
send_head
=
conn
->
writechannel_inuse
&&
(
gethandleathead
(
conn
->
send_pipe
)
==
data
);
if
(
Curl_removeHandleFromPipeline
(
data
,
conn
->
recv_pipe
)
&&
recv_head
)
conn
->
readchannel_inuse
=
FALSE
;
if
(
Curl_removeHandleFromPipeline
(
data
,
conn
->
send_pipe
)
&&
send_head
)
conn
->
writechannel_inuse
=
FALSE
;
Curl_removeHandleFromPipeline
(
data
,
conn
->
pend_pipe
);
}
static
void
signalPipeClose
(
struct
curl_llist
*
pipeline
)
{
struct
curl_llist_element
*
curr
;
...
...
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