etlist: fixed incomplete packet saving

This commit is contained in:
Radegast 2012-10-13 16:17:37 +01:00
parent e819a543d1
commit ae5b795524

View file

@ -76,7 +76,7 @@ void Connection::HandleReceive(const boost::system::error_code& error,
boost::asio::placeholders::bytes_transferred)); boost::asio::placeholders::bytes_transferred));
// std::cout.write(data_, bytes_recvd) << std::endl; // std::cout.write(data_, bytes_recvd) << std::endl;
response_.push_back(data_); response_.push_back(std::string(data_, bytes_recvd));
} }
#if 0 #if 0
else if (error) else if (error)
@ -99,4 +99,4 @@ void Connection::HandleSend()
boost::bind(&Connection::HandleReceive, this, boost::bind(&Connection::HandleReceive, this,
boost::asio::placeholders::error, boost::asio::placeholders::error,
boost::asio::placeholders::bytes_transferred)); boost::asio::placeholders::bytes_transferred));
} }