Skip to content

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

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

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.

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.

1 participant