Skip to content

v2.24.2

Choose a tag to compare

@bpacholek bpacholek released this 09 Oct 17:36
· 123 commits to main since this release
0ebc74a

Fixes JetStream batch operations exceeding their own timeout during reconnect and inbox setup (#188).

  • fetchBatch() and fetchNext() now share one expiresMs + 1000 ms budget across SUB, reconnect, PUB, collection and cleanup. An empty fetch ends with the usual JetStreamException code 408; a longer fetch can wait beyond the global requestTimeoutMs.
  • Direct Get starts its no-progress interval before inbox setup and renews it on replies, even while PUB completion is pending. Multi-subject reads retain a separate interval for each chunk.
  • Delayed pulls shorten their wire expiry with a 100 ms response margin. Heartbeats that no longer fit are omitted along with their local miss check.
  • Expired or rejected inboxes are released without overrunning the operation. Retries check the inbox and remaining budget; late write failures can recover without resending. An already-started transport write can still finish after the operation ends.

Verified with 3,141 unit tests, 150 integration tests, 48 Behat scenarios, PHPStan and formatting checks.