diff options
author | Ed Tanous <ed.tanous@intel.com> | 2017-05-18 23:35:56 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2017-05-18 23:35:56 +0300 |
commit | 620ec59339a89fababa81d36bad71a9651f4299c (patch) | |
tree | f3ebde99614a2420244679bc560fb507dc99d5e6 /crow | |
parent | 80af6004d79308340929aad93f9d254e3558a814 (diff) | |
download | bmcweb-620ec59339a89fababa81d36bad71a9651f4299c.tar.xz |
incremental
Diffstat (limited to 'crow')
-rw-r--r-- | crow/include/crow/http_connection.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crow/include/crow/http_connection.h b/crow/include/crow/http_connection.h index d13f26ecb7..5ead3721b9 100644 --- a/crow/include/crow/http_connection.h +++ b/crow/include/crow/http_connection.h @@ -426,7 +426,6 @@ class Connection { private: void do_read() { - CROW_LOG_DEBUG << "Foo0"; // auto self = this->shared_from_this(); is_reading = true; adaptor_.socket().async_read_some( @@ -435,41 +434,27 @@ class Connection { std::size_t bytes_transferred) { bool error_while_reading = true; if (!ec) { - CROW_LOG_DEBUG << "Foo1"; bool ret = parser_.feed(buffer_.data(), bytes_transferred); if (ret && adaptor_.is_open()) { - CROW_LOG_DEBUG << "Foo1"; error_while_reading = false; } - CROW_LOG_DEBUG << "FooA"; } - CROW_LOG_DEBUG << "Foo3"; if (error_while_reading) { - CROW_LOG_DEBUG << "Foo4"; cancel_deadline_timer(); - CROW_LOG_DEBUG << "Foo5"; parser_.done(); - CROW_LOG_DEBUG << "Foo6"; adaptor_.close(); is_reading = false; CROW_LOG_DEBUG << this << " from read(1)"; check_destroy(); } else if (close_connection_) { - CROW_LOG_DEBUG << "Foo7"; cancel_deadline_timer(); - CROW_LOG_DEBUG << "Foo8"; parser_.done(); - CROW_LOG_DEBUG << "Foo9"; is_reading = false; - CROW_LOG_DEBUG << "Foo10"; check_destroy(); // adaptor will close after write } else if (!need_to_call_after_handlers_) { - CROW_LOG_DEBUG << "Foo11"; start_deadline(); - CROW_LOG_DEBUG << "Foo12"; do_read(); - CROW_LOG_DEBUG << "Foo12"; } else { // res will be completed later by user need_to_start_read_after_complete_ = true; |