h2_task.c (mod_http2-1.15.16) | : | h2_task.c (mod_http2-1.15.17) | ||
---|---|---|---|---|
skipping to change at line 191 | skipping to change at line 191 | |||
/* could not write all, buffer the rest */ | /* could not write all, buffer the rest */ | |||
ap_log_cerror(APLOG_MARK, APLOG_DEBUG, rv, task->c, APLOGNO(0340 5) | ap_log_cerror(APLOG_MARK, APLOG_DEBUG, rv, task->c, APLOGNO(0340 5) | |||
"h2_secondary_out(%s): saving brigade", task->id); | "h2_secondary_out(%s): saving brigade", task->id); | |||
ap_assert(NULL); | ap_assert(NULL); | |||
rv = ap_save_brigade(f, &task->output.bb, &bb, task->pool); | rv = ap_save_brigade(f, &task->output.bb, &bb, task->pool); | |||
flush = 1; | flush = 1; | |||
} | } | |||
} | } | |||
} | } | |||
if (APR_SUCCESS == rv && !task->output.opened && flush) { | ap_log_cerror(APLOG_MARK, APLOG_TRACE2, 0, task->c, | |||
"h2_secondary_out(%s): buffered=%d", task->id, task->output.bu | ||||
ffered); | ||||
if (APR_SUCCESS == rv && !task->output.opened && (flush || !task->output.buf | ||||
fered)) { | ||||
/* got a flush or could not write all, time to tell someone to read */ | /* got a flush or could not write all, time to tell someone to read */ | |||
rv = open_output(task); | rv = open_output(task); | |||
} | } | |||
out: | out: | |||
ap_log_cerror(APLOG_MARK, APLOG_TRACE2, rv, task->c, | ap_log_cerror(APLOG_MARK, APLOG_TRACE2, rv, task->c, | |||
"h2_secondary_out(%s): secondary_out leave", task->id); | "h2_secondary_out(%s): secondary_out leave", task->id); | |||
return rv; | return rv; | |||
} | } | |||
static apr_status_t output_finish(h2_task *task) | static apr_status_t output_finish(h2_task *task) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 5 lines changed or added |