Commit 4060412e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Deal with WINDOWS_UPDATES on closed streams

parent 3b30c88c
......@@ -279,6 +279,8 @@ h2_rx_window_update(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
wu = vbe32dec(h2->rxf_data) & ~(1LU<<31);
if (wu == 0)
return (H2SE_PROTOCOL_ERROR);
if (r2 == NULL)
return (0);
Lck_Lock(&h2->sess->mtx);
r2->window += wu;
Lck_Unlock(&h2->sess->mtx);
......
......@@ -81,6 +81,17 @@ client c1 {
} -run
} -run
client c1 {
stream 1 {
txreq
rxresp
} -run
stream 1 {
# WINDOW_UPDATE on closed stream
txwinup -size 0x4000
} -run
} -run
#######################################################################
# Test PING error conditions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment