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
5ce87866
Commit
5ce87866
authored
Aug 08, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose SES_GetReq()
parent
d11b8531
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
cache.h
bin/varnishd/cache/cache.h
+1
-0
cache_session.c
bin/varnishd/cache/cache_session.c
+3
-5
No files found.
bin/varnishd/cache/cache.h
View file @
5ce87866
...
...
@@ -959,6 +959,7 @@ void SES_Charge(struct worker *, struct req *);
struct
sesspool
*
SES_NewPool
(
struct
pool
*
pp
,
unsigned
pool_no
);
void
SES_DeletePool
(
struct
sesspool
*
sp
);
int
SES_ScheduleReq
(
struct
req
*
);
struct
req
*
SES_GetReq
(
struct
sess
*
sp
);
void
SES_Handle
(
struct
sess
*
sp
,
double
now
);
void
SES_ReleaseReq
(
struct
req
*
);
pool_func_t
SES_pool_accept_task
;
...
...
bin/varnishd/cache/cache_session.c
View file @
5ce87866
...
...
@@ -52,8 +52,6 @@
static
unsigned
ses_size
=
sizeof
(
struct
sess
);
static
struct
req
*
ses_GetReq
(
struct
sess
*
sp
);
/*--------------------------------------------------------------------*/
struct
sesspool
{
...
...
@@ -162,7 +160,7 @@ ses_sess_pool_task(struct worker *wrk, void *arg)
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
CAST_OBJ_NOTNULL
(
sp
,
arg
,
SESS_MAGIC
);
req
=
ses
_GetReq
(
sp
);
req
=
SES
_GetReq
(
sp
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
req
->
vxid
=
VXID_Get
(
&
wrk
->
vxid_pool
);
...
...
@@ -346,8 +344,8 @@ SES_Delete(struct sess *sp, enum sess_close reason, double now)
* Alloc/Free a request
*/
st
atic
st
ruct
req
*
ses
_GetReq
(
struct
sess
*
sp
)
struct
req
*
SES
_GetReq
(
struct
sess
*
sp
)
{
struct
sesspool
*
pp
;
struct
req
*
req
;
...
...
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