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
d4baf2fa
Commit
d4baf2fa
authored
Oct 23, 2023
by
Dridi Boukelmoune
Committed by
Simon Stridsberg
Mar 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http2_send: Move h2_errcheck() at the top
parent
9572267c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
cache_http2_send.c
bin/varnishd/http2/cache_http2_send.c
+13
-13
No files found.
bin/varnishd/http2/cache_http2_send.c
View file @
d4baf2fa
...
@@ -42,6 +42,19 @@
...
@@ -42,6 +42,19 @@
#define H2_SEND_HELD(h2, r2) (VTAILQ_FIRST(&(h2)->txqueue) == (r2))
#define H2_SEND_HELD(h2, r2) (VTAILQ_FIRST(&(h2)->txqueue) == (r2))
static
h2_error
h2_errcheck
(
const
struct
h2_req
*
r2
,
const
struct
h2_sess
*
h2
)
{
CHECK_OBJ_NOTNULL
(
r2
,
H2_REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
h2
,
H2_SESS_MAGIC
);
if
(
r2
->
error
!=
NULL
)
return
(
r2
->
error
);
if
(
h2
->
error
!=
NULL
&&
r2
->
stream
>
h2
->
goaway_last_stream
)
return
(
h2
->
error
);
return
(
NULL
);
}
static
int
static
int
h2_cond_wait
(
pthread_cond_t
*
cond
,
struct
h2_sess
*
h2
,
struct
h2_req
*
r2
)
h2_cond_wait
(
pthread_cond_t
*
cond
,
struct
h2_sess
*
h2
,
struct
h2_req
*
r2
)
{
{
...
@@ -232,19 +245,6 @@ h2_win_charge(struct h2_req *r2, const struct h2_sess *h2, uint32_t w)
...
@@ -232,19 +245,6 @@ h2_win_charge(struct h2_req *r2, const struct h2_sess *h2, uint32_t w)
h2
->
req0
->
t_window
-=
w
;
h2
->
req0
->
t_window
-=
w
;
}
}
static
h2_error
h2_errcheck
(
const
struct
h2_req
*
r2
,
const
struct
h2_sess
*
h2
)
{
CHECK_OBJ_NOTNULL
(
r2
,
H2_REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
h2
,
H2_SESS_MAGIC
);
if
(
r2
->
error
!=
NULL
)
return
(
r2
->
error
);
if
(
h2
->
error
!=
NULL
&&
r2
->
stream
>
h2
->
goaway_last_stream
)
return
(
h2
->
error
);
return
(
NULL
);
}
static
int64_t
static
int64_t
h2_do_window
(
struct
worker
*
wrk
,
struct
h2_req
*
r2
,
h2_do_window
(
struct
worker
*
wrk
,
struct
h2_req
*
r2
,
struct
h2_sess
*
h2
,
int64_t
wanted
)
struct
h2_sess
*
h2
,
int64_t
wanted
)
...
...
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