Skip to content

v2.26.2

Choose a tag to compare

@bpacholek bpacholek released this 13 Oct 00:22
· 62 commits to main since this release

Patch release.

What's fixed (#204): a request() or requestMany() waiting for a replacement reply inbox to be confirmed now checks the inbox before each confirmation read, not only after one.

The bug: the wait pauses for 1 ms after a read that returned without reading. If another fiber's read dropped the inbox during that pause, through the server's renewed maximum subscriptions exceeded or a permissions violation naming the inbox, the next read went out without a wake-up. On an idle connection the request then waited out its whole timeout (Request timed out for subject ... while waiting for the reply inbox to be set up) instead of failing at once with the dropped-inbox error. A lame-duck INFO taken by that read was failed over inline, past the request's timeout.

Now: the request fails at once with the dropped-inbox or the permissions error, without another read and without being sent, as README Request/Reply describes. A later request still installs a fresh inbox.

Who should upgrade: this needs a connection at its subscription limit and another fiber's read (an application read loop, or the heartbeat) meeting the rejection inside that 1 ms window, so it is rare. Upgrade if you run near the subscription limit with concurrent reads. There are no API changes.

Quality gates

  • PHPStan level 8.
  • 3474 unit tests (with data sets) on PHP 8.2 to 8.5, 159 live integration tests and 49 Behat scenarios. All runnable examples pass.
  • codecov/patch 100%: every changed line is covered. Total coverage 99.04%.
  • Infection covered MSI 92.83% (90% floor enforced in CI). It skipped 4929 of the 8807 mutants it generated as too slow, so the score does not include them. No mutant escaped in the changed confirmation loop.
  • New MuxConfirmationPauseTest, 16 cases, 8 of which fail on 2.26.1. The tests hold the real 1 ms pause timer, so the order of events decides, not timing. Five broken variants of the fix were tried. The three that change behaviour each fail cases. The guard for a rejection in the read the request waits behind was strengthened so that dropping the check after the read also fails. The fifth, checking only after the pause, is the alternative the issue itself suggested.

The full record is in the CHANGELOG.