Skip to content

Commit

Permalink
Correct request magic byte
Browse files Browse the repository at this point in the history
0x80 for request
0x81 for response
  • Loading branch information
Ngo The Trung authored and Ngo-The-Trung committed Aug 27, 2018
1 parent 626d816 commit efd375b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcrouter/lib/network/McBinaryParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ McServerBinaryParser::State McServerBinaryParser::consume(folly::IOBuf& buffer)
bool McServerBinaryParser::parseHeader(const char * bytes) {
header_ = reinterpret_cast<const RequestHeader*>(bytes);

if (getMagic() != 0x80 || getMagic() != 0x81 || getDataType() != 0x00) {
if (getMagic() != 0x80 || getDataType() != 0x00) {
return false;
}

Expand Down

0 comments on commit efd375b

Please sign in to comment.