Compare commits
1 Commits
1c6cde44c3
...
cb7205718f
| Author | SHA1 | Date | |
|---|---|---|---|
| cb7205718f |
@@ -115,6 +115,7 @@ 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