фикс http keep alive
This commit is contained in:
parent
8da8c054bf
commit
ed0bfce64d
@ -61,6 +61,8 @@ namespace http::server {
|
||||
async_write(socket_, reply_.to_buffers(), [this, self](boost::system::error_code ec, std::size_t) {
|
||||
if (!ec && !needClose) {
|
||||
// keep alive Connection
|
||||
request_parser_.reset();
|
||||
request_.reset();
|
||||
doRead();
|
||||
} else {
|
||||
connection_manager_.stop(shared_from_this());
|
||||
|
Loading…
x
Reference in New Issue
Block a user