core,engine: Change buffer limit actions to FlushAll/FlushPartial