A mistake in the buffer size calculation caused the buffer for chunk packets to be around 16 times the size they should have been.