session: avoid packet boundary error