E.g. the pagingtest you just "fixed" already passed on my machine (32 bit) but didn't on yours (64 bit)
That test is writing 512 body on each message. my expectation when writing is.. the message could have a little memory overhead beyond 512. But those small messages are consuming more than 1K on the server due to dynamic buffer.
Shouldn't we be using smaller sizes on the dynamic buffer for small messages on the server?
I will look into calculating the size later.