Skip to content

Commit 62e9171

Browse files
committed
libcephfs_proxy: fix protocol structures for backward compatibility
The structures used for transferring data between the proxy client and the proxy daemon had been reworked in a recent change to be able to expand the protocol. This caused an inconsistency in the size of the data transferred when communication with a peer using the older version. The result was that the peer receiving the data with an unexpected size was closing the connection, causing unexpected errors. The discrepancy in size is the result of how compilers pad structures combined with the change in the structure layout introduced when extending the protocol. With these changes, the computation of the size of each version of the structures was not done correctly. This change makes the layout equal to the older version, so that computing the size of the structures becomes easier and doesn't depend on unexpected paddings. Fixes: https://tracker.ceph.com/issues/72800 Signed-off-by: Xavi Hernandez <[email protected]>
1 parent cdb6321 commit 62e9171

File tree

1 file changed

+168
-121
lines changed

1 file changed

+168
-121
lines changed

0 commit comments

Comments
 (0)