return false;
}
if (errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR) {
- // TODO log error
+ log(LogLevel::WARN, "Error writing to control connection: ", strerror(errno));
return false;
}
// EAGAIN etc: fall through to below
return false;
}
if (errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR) {
- // TODO log error
+ log(LogLevel::WARN, "Error writing to control connection: ", strerror(errno));
return false;
}
// EAGAIN etc: fall through to below
// Note file descriptor is non-blocking
if (r == -1) {
if (errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR) {
- // TODO log error
+ log(LogLevel::WARN, "Error writing to control connection: ", strerror(errno));
return true;
}
return false;
}
else if (rbuf.get_length() == 1024) {
// Too big packet
- // TODO log error?
- // TODO error response?
+ log(LogLevel::WARN, "Received too-large control package; dropping connection");
bad_conn_close = true;
iob.setWatches(OUT_EVENTS);
}