Backport a bug fix from the pre-releaseA mistake in the buffer size calculation caused the buffer for chunk packets to be around 16 times the size they should have been.