Skip to content

Handle commands from one stdin chunk concurrently - #184

Open
bjalt wants to merge 1 commit into
playwright-php:mainfrom
bjalt:fix/stdin-commands-run-concurrently
Open

bjalt wants to merge 1 commit into
playwright-php:mainfrom
bjalt:fix/stdin-commands-run-concurrently

Conversation

@bjalt

@bjalt bjalt commented Oct 6, 2026

Copy link
Copy Markdown

Fixes #183.

The bridge awaited each command of a stdin chunk before starting the next. So a locator.waitFor held back a route.fulfill that arrived with it until the wait timed out. Commands from one chunk are now started without waiting, as commands from separate chunks already were.

StdinChunkTest writes a locator.waitFor and a page.url in one write and checks that page.url answers first. It fails without the change.

@codecov

codecov Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

Commands in one stdin chunk are handled sequentially, so locator.waitFor can block the route.fulfill it waits for

1 participant