JobClient/Server fixes
- Retain original CLIENT_RETRY_COUNT semantics after Boost::Asio switch - JobClient is C++11 now, too - Message reception copy/paste error fixes Change-Id: I19c474b2a79cd2ac8657e8d58d6170202d096fb0
This commit is contained in:
@ -92,7 +92,7 @@ static bool rcvMsg(tcp::socket &socket, google::protobuf::Message &msg,
|
||||
|
||||
std::vector<char> buf(msg_size);
|
||||
len = async_read(socket, buffer(buf), yield[ec]);
|
||||
if (ec || len != sizeof(size)) {
|
||||
if (ec || len != msg_size) {
|
||||
std::cerr << ec.message() << std::endl;
|
||||
std::cerr << "Read " << len << " instead of " << msg_size
|
||||
<< " bytes from socket" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user