Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
b797261c
Commit
b797261c
authored
Feb 19, 2020
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish a bit
parent
144df88c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
cache_session.c
bin/varnishd/cache/cache_session.c
+7
-7
No files found.
bin/varnishd/cache/cache_session.c
View file @
b797261c
...
...
@@ -471,18 +471,18 @@ SES_Wait(struct sess *sp, const struct transport *xp)
/*
* Put struct waited on the workspace. Make sure that the
* workspace can hold enough space for
the largest of struct
*
waited
and pool_task, as pool_task will be needed when coming
* workspace can hold enough space for
both struct waited
* and pool_task, as pool_task will be needed when coming
* off the waiter again.
*/
u
=
sizeof
(
struct
waited
);
if
(
sizeof
(
struct
pool_task
)
>
u
)
u
=
sizeof
(
struct
pool_task
);
if
(
!
WS_ReserveSize
(
sp
->
ws
,
u
))
{
u
=
WS_ReserveAll
(
sp
->
ws
);
if
(
u
<
sizeof
(
struct
waited
)
||
u
<
sizeof
(
struct
pool_task
))
{
WS_MarkOverflow
(
sp
->
ws
);
SES_Delete
(
sp
,
SC_OVERLOAD
,
NAN
);
return
;
}
wp
=
(
void
*
)
sp
->
ws
->
f
;
wp
=
(
void
*
)
WS_Front
(
sp
->
ws
);
INIT_OBJ
(
wp
,
WAITED_MAGIC
);
wp
->
fd
=
sp
->
fd
;
wp
->
priv1
=
sp
;
...
...
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