Skip to content

Commit efd375b

Browse files
Ngo The TrungNgo-The-Trung
authored andcommitted
Correct request magic byte
0x80 for request 0x81 for response
1 parent 626d816 commit efd375b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcrouter/lib/network/McBinaryParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ McServerBinaryParser::State McServerBinaryParser::consume(folly::IOBuf& buffer)
8383
bool McServerBinaryParser::parseHeader(const char * bytes) {
8484
header_ = reinterpret_cast<const RequestHeader*>(bytes);
8585

86-
if (getMagic() != 0x80 || getMagic() != 0x81 || getDataType() != 0x00) {
86+
if (getMagic() != 0x80 || getDataType() != 0x00) {
8787
return false;
8888
}
8989

0 commit comments

Comments
 (0)