{"version":"2.1.248","anchor":"event-writer-sends-a-batch-in-one-call","canonical_anchor":"event-writer-sends-a-batch-in-one-call","heading":"Event writer sends a batch in one call","tier":"internal","area":"Cloud Sessions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/event-writer-sends-a-batch-in-one-call","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Event writer sends a batch in one call\n\nEvent batches are sent in one call, removing a mid-batch failure case.\n\n**What**\n\nThe event writer replaces a hand-rolled sequential batch loop, which could report \"transport_closed_mid_batch\", with a single write call, and its close now accepts a retain option.\n\n**Details**\n\n- Adds take, discard and adopt operations so a successor connection can pick up events that never reached the client.\n\n**Evidence**\n\n`retainUndeliveredClientEvents`\n\n- Area: Cloud Sessions\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}