bookkeeper icon indicating copy to clipboard operation
bookkeeper copied to clipboard

PerChannelBookieClient Enhancement: Self-Recovery Support in Corrupte…

Open hezhangjian opened this issue 2 years ago • 1 comments

Motivation

In the context of popular protocols like LengthBasedFrame, which typically determine total message length based on the first 0-4 bytes (for example, if the initial bytes are 00000014, the message length is 1*16+4 = 20), message tampering can cause serious issues. Specifically, any modification to the higher order bytes can lead to miscalculation of message length and leave the communication end waiting indefinitely without any ability to self-recover.

In summary, in scenarios with message tampering, communication timeout can lead to an unrecoverable link. I think we can rebuild the client when timeout.

Changes

rebuild the PerChannelBookieClient when timeout.

hezhangjian avatar Jul 08 '23 06:07 hezhangjian

@hangc0276 Yes, I'm still working on it.

hezhangjian avatar Jul 17 '23 04:07 hezhangjian

Recently, I have no time to work on this, closed for now.

hezhangjian avatar May 25 '24 12:05 hezhangjian