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
a0b8a734
Commit
a0b8a734
authored
Apr 17, 2019
by
Dridi Boukelmoune
Committed by
Nils Goroll
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suffix with _locked for clarity
parent
3c8ecb4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cache_http2_send.c
bin/varnishd/http2/cache_http2_send.c
+6
-6
No files found.
bin/varnishd/http2/cache_http2_send.c
View file @
a0b8a734
...
...
@@ -40,7 +40,7 @@
#include "vtim.h"
static
void
h2_send_get
(
struct
worker
*
wrk
,
struct
h2_sess
*
h2
,
struct
h2_req
*
r2
)
h2_send_get
_locked
(
struct
worker
*
wrk
,
struct
h2_sess
*
h2
,
struct
h2_req
*
r2
)
{
CHECK_OBJ_NOTNULL
(
h2
,
H2_SESS_MAGIC
);
CHECK_OBJ_NOTNULL
(
r2
,
H2_REQ_MAGIC
);
...
...
@@ -64,12 +64,12 @@ H2_Send_Get(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
Lck_Lock
(
&
h2
->
sess
->
mtx
);
h2_send_get
(
wrk
,
h2
,
r2
);
h2_send_get
_locked
(
wrk
,
h2
,
r2
);
Lck_Unlock
(
&
h2
->
sess
->
mtx
);
}
static
void
h2_send_rel
(
struct
h2_sess
*
h2
,
const
struct
h2_req
*
r2
)
h2_send_rel
_locked
(
struct
h2_sess
*
h2
,
const
struct
h2_req
*
r2
)
{
CHECK_OBJ_NOTNULL
(
r2
,
H2_REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
h2
,
H2_SESS_MAGIC
);
...
...
@@ -91,7 +91,7 @@ H2_Send_Rel(struct h2_sess *h2, const struct h2_req *r2)
CHECK_OBJ_NOTNULL
(
r2
,
H2_REQ_MAGIC
);
Lck_Lock
(
&
h2
->
sess
->
mtx
);
h2_send_rel
(
h2
,
r2
);
h2_send_rel
_locked
(
h2
,
r2
);
Lck_Unlock
(
&
h2
->
sess
->
mtx
);
}
...
...
@@ -217,7 +217,7 @@ h2_do_window(struct worker *wrk, struct h2_req *r2,
Lck_Lock
(
&
h2
->
sess
->
mtx
);
if
(
r2
->
t_window
<=
0
||
h2
->
req0
->
t_window
<=
0
)
{
r2
->
t_winupd
=
VTIM_real
();
h2_send_rel
(
h2
,
r2
);
h2_send_rel
_locked
(
h2
,
r2
);
while
(
r2
->
t_window
<=
0
&&
h2_errcheck
(
r2
,
h2
)
==
0
)
{
r2
->
cond
=
&
wrk
->
cond
;
AZ
(
Lck_CondWait
(
r2
->
cond
,
&
h2
->
sess
->
mtx
,
0
));
...
...
@@ -234,7 +234,7 @@ h2_do_window(struct worker *wrk, struct h2_req *r2,
h2_win_charge
(
r2
,
h2
,
w
);
assert
(
w
>
0
);
}
h2_send_get
(
wrk
,
h2
,
r2
);
h2_send_get
_locked
(
wrk
,
h2
,
r2
);
}
if
(
w
==
0
&&
h2_errcheck
(
r2
,
h2
)
==
0
)
{
...
...
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