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
5a8ec687
Commit
5a8ec687
authored
Apr 05, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SES_RxInit() shouldnt know about the max length of HTTP headers.
parent
64ae2adc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
11 deletions
+7
-11
cache.h
bin/varnishd/cache/cache.h
+1
-2
cache_acceptor.c
bin/varnishd/cache/cache_acceptor.c
+1
-2
cache_session.c
bin/varnishd/cache/cache_session.c
+1
-3
cache_http1_fetch.c
bin/varnishd/http1/cache_http1_fetch.c
+1
-2
cache_http1_fsm.c
bin/varnishd/http1/cache_http1_fsm.c
+1
-2
cache_http1_proto.c
bin/varnishd/http1/cache_http1_proto.c
+2
-0
No files found.
bin/varnishd/cache/cache.h
View file @
5a8ec687
...
...
@@ -963,8 +963,7 @@ enum htc_status_e {
HTC_S_IDLE
=
3
,
};
void
SES_RxInit
(
struct
http_conn
*
htc
,
struct
ws
*
ws
,
unsigned
maxbytes
,
unsigned
maxhdr
);
void
SES_RxInit
(
struct
http_conn
*
htc
,
struct
ws
*
ws
,
unsigned
maxbytes
);
void
SES_RxReInit
(
struct
http_conn
*
htc
);
enum
htc_status_e
SES_RxStuff
(
struct
http_conn
*
,
htc_complete_f
*
,
double
*
t1
,
double
*
t2
,
double
ti
,
double
tn
);
...
...
bin/varnishd/cache/cache_acceptor.c
View file @
5a8ec687
...
...
@@ -376,8 +376,7 @@ vca_make_session(struct worker *wrk, void *arg)
req
=
Req_New
(
wrk
,
sp
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
req
->
htc
->
fd
=
sp
->
fd
;
SES_RxInit
(
req
->
htc
,
req
->
ws
,
cache_param
->
http_req_size
,
cache_param
->
http_req_hdr_len
);
SES_RxInit
(
req
->
htc
,
req
->
ws
,
cache_param
->
http_req_size
);
SES_SetTransport
(
wrk
,
sp
,
req
,
wa
->
acceptlsock
->
transport
);
}
...
...
bin/varnishd/cache/cache_session.c
View file @
5a8ec687
...
...
@@ -183,14 +183,12 @@ SES_Get_String_Attr(const struct sess *sp, enum sess_attr a)
/*--------------------------------------------------------------------*/
void
SES_RxInit
(
struct
http_conn
*
htc
,
struct
ws
*
ws
,
unsigned
maxbytes
,
unsigned
maxhdr
)
SES_RxInit
(
struct
http_conn
*
htc
,
struct
ws
*
ws
,
unsigned
maxbytes
)
{
htc
->
magic
=
HTTP_CONN_MAGIC
;
htc
->
ws
=
ws
;
htc
->
maxbytes
=
maxbytes
;
htc
->
maxhdr
=
maxhdr
;
(
void
)
WS_Reserve
(
htc
->
ws
,
htc
->
maxbytes
);
htc
->
rxbuf_b
=
ws
->
f
;
...
...
bin/varnishd/http1/cache_http1_fetch.c
View file @
5a8ec687
...
...
@@ -149,8 +149,7 @@ V1F_FetchRespHdr(struct busyobj *bo)
/* Receive response */
SES_RxInit
(
htc
,
bo
->
ws
,
cache_param
->
http_resp_size
,
cache_param
->
http_resp_hdr_len
);
SES_RxInit
(
htc
,
bo
->
ws
,
cache_param
->
http_resp_size
);
CHECK_OBJ_NOTNULL
(
htc
,
HTTP_CONN_MAGIC
);
CHECK_OBJ_NOTNULL
(
bo
->
htc
,
HTTP_CONN_MAGIC
);
...
...
bin/varnishd/http1/cache_http1_fsm.c
View file @
5a8ec687
...
...
@@ -130,8 +130,7 @@ http1_unwait(struct worker *wrk, void *arg)
req
=
Req_New
(
wrk
,
sp
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
req
->
htc
->
fd
=
sp
->
fd
;
SES_RxInit
(
req
->
htc
,
req
->
ws
,
cache_param
->
http_req_size
,
cache_param
->
http_req_hdr_len
);
SES_RxInit
(
req
->
htc
,
req
->
ws
,
cache_param
->
http_req_size
);
http1_setstate
(
sp
,
H1NEWREQ
);
wrk
->
task
.
func
=
http1_req
;
wrk
->
task
.
priv
=
req
;
...
...
bin/varnishd/http1/cache_http1_proto.c
View file @
5a8ec687
...
...
@@ -349,6 +349,7 @@ HTTP1_DissectRequest(struct http_conn *htc, struct http *hp)
CHECK_OBJ_NOTNULL
(
htc
,
HTTP_CONN_MAGIC
);
CHECK_OBJ_NOTNULL
(
hp
,
HTTP_MAGIC
);
htc
->
maxhdr
=
cache_param
->
http_req_hdr_len
;
retval
=
http1_splitline
(
hp
,
htc
,
HTTP1_Req
);
if
(
retval
!=
0
)
return
(
retval
);
...
...
@@ -414,6 +415,7 @@ HTTP1_DissectResponse(struct http_conn *htc, struct http *hp,
CHECK_OBJ_NOTNULL
(
hp
,
HTTP_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
,
HTTP_MAGIC
);
htc
->
maxhdr
=
cache_param
->
http_resp_hdr_len
;
if
(
http1_splitline
(
hp
,
htc
,
HTTP1_Resp
))
retval
=
503
;
...
...
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