34 #define CONNECTION_CLOSE_REASON_GEN(x) \ 35 x(SHUTDOWN, "shutdown") \ 36 x(READ_EOF, "read_eof") \ 38 x(SESSION_PARSE_ERROR, "session_parse_err") \ 39 x(REMOTE_ERROR, "remote_err") \ 40 x(TRANSACTION_ABORT, "transaction_abort") \ 41 x(TIMEOUT, "timeout") \ 42 x(IO_READ_ERROR, "io_read_err") \ 43 x(IO_WRITE_ERROR, "io_write_err") \ 44 x(REQ_NOTREUSABLE, "req_not_reusable") \ 45 x(ERR_RESP, "err_resp") \ 46 x(UNKNOWN, "unknown") \ 47 x(FLOW_CONTROL, "flow_control") \ 48 x(kMAX_REASON, "unset") 50 #define CONNECTION_CLOSE_REASON_ENUM(e, r) e, 54 #undef CONNECTION_CLOSE_REASON_ENUM
const char * getConnectionCloseReasonString(ConnectionCloseReason r)
#define CONNECTION_CLOSE_REASON_GEN(x)
const char * getConnectionCloseReasonStringByIndex(unsigned int index)
#define CONNECTION_CLOSE_REASON_ENUM(e, r)