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
f9eec3b3
Commit
f9eec3b3
authored
Sep 01, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Respect remote MAX_FRAME_SIZE
parent
5043df49
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
11 deletions
+28
-11
cache_http2.h
bin/varnishd/http2/cache_http2.h
+6
-1
cache_http2_deliver.c
bin/varnishd/http2/cache_http2_deliver.c
+0
-1
cache_http2_panic.c
bin/varnishd/http2/cache_http2_panic.c
+0
-2
cache_http2_proto.c
bin/varnishd/http2/cache_http2_proto.c
+0
-6
cache_http2_send.c
bin/varnishd/http2/cache_http2_send.c
+22
-1
No files found.
bin/varnishd/http2/cache_http2.h
View file @
f9eec3b3
...
...
@@ -50,7 +50,12 @@ enum h2_stream_e {
#define H2_FRAME_FLAGS(l,u,v) extern const uint8_t H2FF_##u;
#include "tbl/h2_frames.h"
#define H2_SETTINGS_N 7
enum
h2setting
{
#define H2_SETTINGS(n,v,d) H2S_##n = v,
#include "tbl/h2_settings.h"
#undef H2_SETTINGS
H2_SETTINGS_N
};
struct
h2_req
{
unsigned
magic
;
...
...
bin/varnishd/http2/cache_http2_deliver.c
View file @
f9eec3b3
...
...
@@ -44,7 +44,6 @@
#include "../cache/cache_filter.h"
#include "../cache/cache_transport.h"
#include "../http1/cache_http1.h"
#include "../http2/cache_http2.h"
#include "vct.h"
...
...
bin/varnishd/http2/cache_http2_panic.c
View file @
f9eec3b3
...
...
@@ -47,8 +47,6 @@
#include "vend.h"
#include "vsb.h"
#include "vtcp.h"
#include "vtim.h"
void
h2_sess_panic
(
struct
vsb
*
vsb
,
const
struct
sess
*
sp
)
...
...
bin/varnishd/http2/cache_http2_proto.c
View file @
f9eec3b3
...
...
@@ -55,12 +55,6 @@ enum h2frame {
#include "tbl/h2_frames.h"
};
enum
h2setting
{
#define H2_SETTINGS(n,v,d) H2S_##n = v,
#include "tbl/h2_settings.h"
#undef H2_SETTINGS
};
static
const
char
*
h2_framename
(
enum
h2frame
h2f
)
{
...
...
bin/varnishd/http2/cache_http2_send.c
View file @
f9eec3b3
...
...
@@ -100,15 +100,36 @@ H2_Send(struct worker *wrk, struct h2_req *r2, int flush,
{
int
retval
;
struct
h2_sess
*
h2
;
uint32_t
mfs
,
tf
;
const
char
*
p
;
(
void
)
flush
;
AN
(
ptr
);
CHECK_OBJ_NOTNULL
(
r2
,
H2_REQ_MAGIC
);
h2
=
r2
->
h2sess
;
CHECK_OBJ_NOTNULL
(
h2
,
H2_SESS_MAGIC
);
Lck_Lock
(
&
h2
->
sess
->
mtx
);
retval
=
H2_Send_Frame
(
wrk
,
h2
,
type
,
flags
,
len
,
r2
->
stream
,
ptr
);
mfs
=
h2
->
their_settings
[
H2S_MAX_FRAME_SIZE
];
if
(
len
<
mfs
)
{
retval
=
H2_Send_Frame
(
wrk
,
h2
,
type
,
flags
,
len
,
r2
->
stream
,
ptr
);
}
else
if
(
type
==
H2_FRAME_DATA
)
{
p
=
ptr
;
do
{
tf
=
mfs
;
if
(
tf
>
len
)
tf
=
len
;
retval
=
H2_Send_Frame
(
wrk
,
h2
,
type
,
tf
==
len
?
flags
:
0
,
tf
,
r2
->
stream
,
p
);
p
+=
tf
;
len
-=
tf
;
}
while
(
len
>
0
);
}
else
{
INCOMPL
();
}
Lck_Unlock
(
&
h2
->
sess
->
mtx
);
return
(
retval
);
}
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