Browse Source

Fixed incorret asynchronous checks

master
Artyom Beilis 11 years ago
parent
commit
38c63a3bdb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/http_context.cpp

+ 1
- 1
src/http_context.cpp View File

@@ -172,7 +172,7 @@ namespace {

void context::async_flush_output(context::handler const &h)
{
if(response().io_mode() != http::response::asynchronous) {
if(response().io_mode() != http::response::asynchronous && response().io_mode()!=http::response::asynchronous_raw) {
throw cppcms_error("Can't use asynchronouse operations when I/O mode is synchronous");
}
conn_->async_write_response(


Loading…
Cancel
Save