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