Can't figure CF8 out

I’m stuck on Stage #CF8.

I’ve tried sending the data directly as bytes and also tried stringifying and then sending it as bytes. Both didn’t work for me,
Logs are for sending direclty as bytes.

Here are my logs:

[tester::#CF8] $ ./spawn_redis_server.sh --port 6379
[tester::#CF8] client: $ redis-cli PING
[tester::#CF8] client: Sent bytes: "*1\r\n$4\r\nPING\r\n"
[tester::#CF8] client: Received bytes: "$4\r\nPONG\r\n"
[tester::#CF8] client: Received RESP bulk string: "PONG"
[tester::#CF8] Found extra data: "$88\r\nREDIS0011\xfa\tredis-ver\x057.2.0\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2m\b\xbce\xfa\bused-mem°\xc4\x10\x00\xfa\baof-base\xc0\x00\xff\xf0n;\xfe\xc0\xffZ\xa2"
[tester::#CF8] Test failed
[tester::#CF8] Terminating program
[tester::#CF8] Program terminated successfully

And here’s a snippet of my code:

include relevant code here (please make sure to keep the backticks around this!)

Hi @adiSuper94, could you check the timing when the master sends the RDB?

I tried running your code, and it seems that the master responded with the RDB outside of the handshake process:

Note that it’s in stage 2 (#RG2 Respond to PING), which does not involve the handshake yet.

Thanks for pointing this out. Fixed it now. Thank you very much!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.