Skip to content

Simplify gh21031.phpt and solve flakiness#21692

Open
iluuu1994 wants to merge 1 commit intophp:PHP-8.4from
iluuu1994:fix-flaky-gh21031-test
Open

Simplify gh21031.phpt and solve flakiness#21692
iluuu1994 wants to merge 1 commit intophp:PHP-8.4from
iluuu1994:fix-flaky-gh21031-test

Conversation

@iluuu1994
Copy link
Copy Markdown
Member

@iluuu1994 iluuu1994 commented Apr 9, 2026

stream_socket_accept($server, 3) would frequently run into a race-condition where the call would timeout and return false, triggering an exception when calling fclose(false) and terminating the process. This would break the phpt_notify() call in the main process due to a broken pipe. Increase the timeout to solve this.

Furthermore, remove the proxy in the test that is not necessary to trigger the original bug solved in 7782b88.

For context: https://github.com/php/php-src/actions/runs/24167977131/job/70533618981 There were many such failures in the last few days.

stream_socket_accept($server, 3) would frequently run into a race-condition
where the call would timeout and return false, triggering an exception when
calling fclose(false) and terminating the process. This would break the
phpt_notify() call in the main process due to a broken pipe. Increase the
timeout to solve this.

Furthermore, remove the proxy in the test that is not necessary to trigger the
original bug solved in 7782b88.
@iluuu1994 iluuu1994 force-pushed the fix-flaky-gh21031-test branch from 41fd5d0 to 9579e72 Compare April 9, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants