Skip to content

sapi/cli: Make the Expect 100-continue abort test wait for the connec… - #23841

Closed
devnexen wants to merge 1 commit into
php:masterfrom
devnexen:fix-flaky-expect-100-continue-test
Closed

devnexen wants to merge 1 commit into
php:masterfrom
devnexen:fix-flaky-expect-100-continue-test

Conversation

@devnexen

Copy link
Copy Markdown
Member

…tion

The test resets the connection as soon as it is opened, so the reset could reach the server while the connection was still in the listen backlog. The server then never saw the request and the expected error was never logged.

Complete a request on a second connection first: the accept queue is FIFO, so a response on the later connection means the earlier one has been accepted, and the reset is guaranteed to hit an established connection.

…tion

The test resets the connection as soon as it is opened, so the reset could
reach the server while the connection was still in the listen backlog.  The
server then never saw the request and the expected error was never logged.

Complete a request on a second connection first: the accept queue is FIFO,
so a response on the later connection means the earlier one has been
accepted, and the reset is guaranteed to hit an established connection.
@devnexen

Copy link
Copy Markdown
Member Author

To fix/harden this failing test.

@Sjord

Sjord commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

I also saw that this test was flaky, but I couldn't reproduce it locally so I couldn't get anywhere with debugging or fixing it. Your diagnosis and fix look reasonable.

@LamentXU123 LamentXU123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see after this is merged can this be fixed in future CI.

@devnexen devnexen closed this in 497fdf2 Sep 26, 2026
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.

3 participants