Compare commits
1 Commits
cb7205718f
...
1c6cde44c3
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c6cde44c3 |
@@ -115,7 +115,6 @@ bool ClusterManager::isClusterEventMsg(const char* msg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ClusterManager::isRawMsg(const char* msg) {
|
bool ClusterManager::isRawMsg(const char* msg) {
|
||||||
// RAW frames must be "RAW:<payload>"; enforce the delimiter so we skip things like "RAW_HEARTBEAT".
|
|
||||||
const std::size_t prefixLen = strlen(ClusterProtocol::RAW_MSG);
|
const std::size_t prefixLen = strlen(ClusterProtocol::RAW_MSG);
|
||||||
if (strncmp(msg, ClusterProtocol::RAW_MSG, prefixLen) != 0) {
|
if (strncmp(msg, ClusterProtocol::RAW_MSG, prefixLen) != 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user