mod_http2 after review by Christophe:
* fix h2_fifo_peek to properly block
* check peek return status while processing mplx queue
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1789276 13f79535-47bb-0310-9956-
ffa450edef68
apr_status_t h2_fifo_peek(h2_fifo *fifo, h2_fifo_peek_fn *fn, void *ctx)
{
- return fifo_peek(fifo, fn, ctx, 0);
+ return fifo_peek(fifo, fn, ctx, 1);
}
apr_status_t h2_fifo_try_peek(h2_fifo *fifo, h2_fifo_peek_fn *fn, void *ctx)
while (!slot->aborted) {
if (!slot->task) {
status = h2_fifo_try_peek(workers->mplxs, mplx_peek, slot);
+ if (status == APR_EOF) {
+ return status;
+ }
}
if (slot->task) {