Fix buffer spilling and don't log short sends