session: write chunk has to store key in keepaliver