Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
a87ec7ad
Commit
a87ec7ad
authored
Dec 22, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shift some code to more appropriate location
parent
3d186d94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
20 deletions
+12
-20
cache_pool.c
bin/varnishd/cache/cache_pool.c
+2
-20
cache_session.c
bin/varnishd/cache/cache_session.c
+10
-0
No files found.
bin/varnishd/cache/cache_pool.c
View file @
a87ec7ad
...
...
@@ -331,28 +331,10 @@ pool_queue(struct pool *pp, struct sess *sp)
int
Pool_Schedule
(
struct
pool
*
pp
,
struct
sess
*
sp
)
{
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
AZ
(
sp
->
wrk
);
if
(
pool_queue
(
pp
,
sp
)
==
0
)
return
(
0
);
VSC_C_main
->
client_drop_late
++
;
/*
* Couldn't queue it -- kill it.
*
* XXX: a notice might be polite, but would potentially
* XXX: sleep whichever thread got us here
*/
sp
->
t_end
=
VTIM_real
();
if
(
sp
->
vcl
!=
NULL
)
{
/*
* A session parked on a busy object can come here
* after it wakes up. Loose the VCL reference.
*/
VCL_Rel
(
&
sp
->
vcl
);
}
return
(
1
);
return
(
pool_queue
(
pp
,
sp
));
}
/*--------------------------------------------------------------------
...
...
bin/varnishd/cache/cache_session.c
View file @
a87ec7ad
...
...
@@ -42,6 +42,7 @@
#include "cache.h"
#include "waiter/waiter.h"
#include "vtim.h"
/*--------------------------------------------------------------------*/
...
...
@@ -266,6 +267,15 @@ SES_Schedule(struct sess *sp)
AN
(
pp
->
pool
);
if
(
Pool_Schedule
(
pp
->
pool
,
sp
))
{
VSC_C_main
->
client_drop_late
++
;
sp
->
t_end
=
VTIM_real
();
if
(
sp
->
vcl
!=
NULL
)
{
/*
* A session parked on a busy object can come here
* after it wakes up. Loose the VCL reference.
*/
VCL_Rel
(
&
sp
->
vcl
);
}
SES_Delete
(
sp
,
"dropped"
);
return
(
1
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment