it seems that the rust client buffer size is set to a low value of 1MB, regardless to the server size record
thus reading larger records than 1MB cause error like
Invalid argument: Invalid size for buffer: 1242329,
a better solution is to make it configurable by a config value or by env