Redesign packet queue full check to be more robust.