Esempio n. 1
0
bool closedLocally(const TTransportException& e) {
  std::string message = e.what();
  return (e.getType() == TTransportException::END_OF_FILE) &&
         (message == "socket closed locally");
}
Esempio n. 2
0
bool wasReset(const TTransportException& e) {
  return (e.getType() == TTransportException::INTERNAL_ERROR) &&
         (e.getErrno() == ECONNRESET);
}