[core] fix HTTP/2 upload > 64k w/ max-request-size (fixes #3108)
fix HTTP/2 upload > 64k with server.max-request-size > 0 (regression present only in lighttpd 1.4.60) (thx SM) x-ref: "File upload is broken after upgrade from 1.4.59 to 1.4.60" https://redmine.lighttpd.net/issues/3108
This commit is contained in:
parent
0e093d66ba
commit
f5b5537ef1
3
src/h2.c
3
src/h2.c
|
@ -1742,6 +1742,7 @@ h2_init_con (request_st * const restrict h2r, connection * const restrict con, c
|
|||
con->read_idle_ts = log_monotonic_secs;
|
||||
con->keep_alive_idle = h2r->conf.max_keep_alive_idle;
|
||||
|
||||
/*(h2r->h2_rwin must match value assigned in h2_init_stream())*/
|
||||
h2r->h2_rwin = 65535; /* h2 connection recv window */
|
||||
h2r->h2_swin = 65535; /* h2 connection send window */
|
||||
/* settings sent from peer */ /* initial values */
|
||||
|
@ -2552,7 +2553,7 @@ h2_init_stream (request_st * const h2r, connection * const con)
|
|||
/* XXX: TODO: assign default priority, etc.
|
||||
* Perhaps store stream id and priority in separate table */
|
||||
h2c->r[h2c->rused++] = r;
|
||||
r->h2_rwin = h2c->s_initial_window_size;
|
||||
r->h2_rwin = 65535; /* must keep in sync with h2_init_con() */
|
||||
r->h2_swin = h2c->s_initial_window_size;
|
||||
r->http_version = HTTP_VERSION_2;
|
||||
|
||||
|
|
Loading…
Reference in New Issue