try to use heartbeat to ping thrift interface(call ping method , receive string "pong")
i ping through tcp and need to send a binary data as below:
check.send: "\x00\x00\x00\x10\x80\x01\x00\x01\x00\x00\x00\x04\x70\x69\x6e\x67\x00\x00\x00\x01\x00"
check.receive: "\x00\x00\x00\x1c\x80\x01\x00\x02\x00\x00\x00\x04\x70\x69\x6e\x67\x00\x00\x00\x01\x0b\x00\x00\x00\x00\x00\x04\x50\x4f\x4e\x47\x00"
but "\x80" seems to be overflow ,
send data would become:
\x00\x00\x00\x10 \x2c \x80\x01\x00\x01\x00\x00\x00\x04\x70\x69\x6e\x67\x00\x00\x00\x01\x00
additional "\x2c"