Skip to content

asynctest: hold stop() and start() of a listen event to a pause (true-async/php-async#305) - #38

Merged
EdmondDantes merged 1 commit into
true-asyncfrom
listen-pause-test
Sep 30, 2026
Merged

EdmondDantes merged 1 commit into
true-asyncfrom
listen-pause-test

Conversation

@EdmondDantes

Copy link
Copy Markdown

Five cmocka cases for the listen event's pause, which true-async/php-async#305 implements:

  • a stopped listener accepts none of three connections until start(), and delivers them on the ticks after it, none from inside start();
  • a held connection survives a second pause;
  • a callback that pauses during delivery stops it;
  • dispose while paused, and dispose between start() and the delivery tick, release every handle.

All five fail against php-async main (e580c15) and pass against its listen-pause branch, 3 of 3 runs. Built with --enable-asynctest; no CI job runs this SAPI.

@EdmondDantes
EdmondDantes merged commit 440f9b1 into true-async Sep 30, 2026
9 of 17 checks passed
@EdmondDantes
EdmondDantes deleted the listen-pause-test branch October 1, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant