An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http://nginx.org/en/docs/contributing_changes.html
Go to file
Valentin Bartenev 0a5e969dd0 HTTP/2: fixed connection finalization.
All streams in connection must be finalized before the connection
itself can be finalized and all related memory is freed.  That's
not always possible on the current event loop iteration.

Thus when the last stream is finalized, it sets the special read
event handler ngx_http_v2_handle_connection_handler() and posts
the event.

Previously, this handler didn't check the connection state and
could call the regular event handler on a connection that was
already in finalization stage.  In the worst case that could
lead to a segmentation fault, since some data structures aren't
supposed to be used during connection finalization.  Particularly,
the waiting queue can contain already freed streams, so the
WINDOW_UPDATE frame received by that moment could trigger
accessing to these freed streams.

Now, the connection error flag is explicitly checked in
ngx_http_v2_handle_connection_handler().
2017-03-29 20:21:01 +03:00
auto Configure: fixed --without_http. 2017-03-16 20:38:31 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: vim syntax, update 3rd party module directives. 2017-03-01 23:41:39 +08:00
docs nginx-1.11.12-RELEASE 2017-03-24 18:05:05 +03:00
misc Added HTTP/2 to win32 builds. 2017-03-21 17:28:15 +03:00
src HTTP/2: fixed connection finalization. 2017-03-29 20:21:01 +03:00
.hgtags release-1.11.12 tag 2017-03-24 18:05:06 +03:00