asio: Start writing on cancel

This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-05 03:00:18 +09:00
parent e4ce595ebb
commit 7ff38eeb2e
1 changed files with 4 additions and 0 deletions

View File

@ -154,6 +154,10 @@ void response_impl::cancel(uint32_t error_code) {
auto handler = stream_->handler();
handler->stream_error(stream_->get_stream_id(), error_code);
if (!handler->inside_callback()) {
handler->initiate_write();
}
}
void response_impl::start_response() {