* file handle pool. */
m->file_handles_allowed += io->files_handles_owned;
h2_io_set_remove(m->stream_ios, io);
+ h2_io_set_remove(m->ready_ios, io);
h2_io_destroy(io);
}
}
h2_io *io = h2_io_set_get_highest_prio(m->ready_ios);
if (io) {
h2_response *response = io->response;
+
+ AP_DEBUG_ASSERT(response);
h2_io_set_remove(m->ready_ios, io);
stream = h2_stream_set_get(streams, response->stream_id);
}
io->response = h2_response_copy(io->pool, response);
+ AP_DEBUG_ASSERT(io->response);
h2_io_set_add(m->ready_ios, io);
if (bb) {
status = out_write(m, io, f, bb, iowait);
if (!m->aborted) {
h2_io *io = h2_io_set_get(m->stream_ios, stream_id);
if (io) {
- if (!io->response->ngheader) {
+ if (!io->response || !io->response->ngheader) {
/* In case a close comes before a response was created,
* insert an error one so that our streams can properly
* reset.