Subversion Repositories HomeAutomation

Rev

Rev 1963 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1963 Rev 1971
Line 87... Line 87...
87
}
87
}
88
 
88
 
89
void Client::ReadHandler(const boost::system::error_code& error, size_t size)
89
void Client::ReadHandler(const boost::system::error_code& error, size_t size)
90
{
90
{
91
  LOG_DEBUG_ENTER;
91
  LOG_DEBUG_ENTER;
-
 
92
 
92
 
93
 
93
  if (error)
94
  if (error)
-
 
95
  {
-
 
96
    log::Debug(log_module_, "error %d", error);
-
 
97
   
-
 
98
    if (boost::system::errc::operation_canceled != error)
94
  {
99
    {
95
    this->Disconnect();
100
      this->Disconnect();
-
 
101
    }
96
  }
102
  }
97
  else if (size == 0)
103
  else if (size == 0)
98
  {
104
  {
-
 
105
    log::Debug(log_module_, "size 0");
-
 
106
   
99
    this->Disconnect();
107
    this->Disconnect();
100
  }
108
  }
101
  else
109
  else
102
  {
110
  {
103
    this->buffer_.SetSize(size);
111
    this->buffer_.SetSize(size);