connection that could lead to a busy loop, preventing the HTTP/2 session
to close down successfully. Fixed PR 66624.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1910331 13f79535-47bb-0310-9956-
ffa450edef68
--- /dev/null
+ *) mod_http2: fixed a bug in flushing pending data on an already closed
+ connection that could lead to a busy loop, preventing the HTTP/2 session
+ to close down successfully. Fixed PR 66624.
+ [Stefan Eissing]
goto cleanup;
}
}
- if (h2_c1_io_needs_flush(&session->io)) {
+ if (h2_c1_io_needs_flush(&session->io) ||
+ ngrv == NGHTTP2_ERR_WOULDBLOCK) {
rv = h2_c1_io_assure_flushed(&session->io);
+ if (rv != APR_SUCCESS)
+ goto cleanup;
pending = 0;
}
}