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:
Horst Schirmeier
2017-12-06 10:31:47 +01:00
parent 9272c5cbed
commit baaa6c3ce8
3 changed files with 5 additions and 3 deletions

View File

@ -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;