Hello,

this may not be the best place to ask this, feel free to redirect me.

I'm working on writing a Cassandra client in my spare time and am currently 
implementing the framing that has been added in protocol v5.

I followed the spec available here: 
https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v5.spec#L97
but I hit an issue regarding the CRC32, when I tried to decode a frame 
generated by cqlsh (which I captured using wireshark) I couldn't get the right 
checksum.

After debugging for a while I realized that the CRC32 hash is always 
initialized with 4 "magic" bytes: 
https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/net/Crc.java#L38-L54

Shouldn't this be added to the specification ? 

Reply via email to