Ping timeout use constant (#36)
* use constant for ping timeout * change close code types
This commit is contained in:
committed by
Benjamin Sergeant
parent
f61fd7b7f1
commit
aea859af52
@ -160,10 +160,11 @@ namespace ix
|
||||
std::atomic<bool> _requestInitCancellation;
|
||||
|
||||
// Constants for dealing with closing conneections
|
||||
static const int kInternalErrorCode;
|
||||
static const int kAbnormalCloseCode;
|
||||
static const uint16_t kInternalErrorCode;
|
||||
static const uint16_t kAbnormalCloseCode;
|
||||
const static std::string kInternalErrorMessage;
|
||||
const static std::string kAbnormalCloseMessage;
|
||||
const static std::string kPingTimeoutMessage;
|
||||
|
||||
// enable auto response to ping
|
||||
bool _enablePong;
|
||||
|
Reference in New Issue
Block a user