Browse Source

[core] HTTP/2 GOAWAY after timeout before read (#3102)

HTTP/2 send GOAWAY soon after client timeout, before potentially
reading new stream requests, which will then have to be reset.

x-ref:
  "Chrome gives random net::ERR_HTTP2_PROTOCOL_ERROR"
  https://redmine.lighttpd.net/issues/3102
master
Glenn Strauss 1 month ago
parent
commit
dc2d82811c
  1. 4
      src/connections.c

4
src/connections.c

@ -1460,10 +1460,12 @@ static void connection_check_timeout (connection * const con, const unix_time64_
con->fd);
}
connection_set_state(r, CON_STATE_RESPONSE_END);
con->is_readable = 0;
changed = 1;
}
}
/* process changes before optimistic read of additional HTTP/2 frames */
if (changed)
con->is_readable = 0;
}
else if (waitevents & FDEVENT_IN) {
if (con->request_count == 1 || r->state != CON_STATE_READ) {

Loading…
Cancel
Save