Skip to content

Retry EventSource after temporary failures using is_permanent_failure#41651

Merged
jdm merged 2 commits intoservo:mainfrom
WaterWhisperer:retry-eventsource
Jan 4, 2026
Merged

Retry EventSource after temporary failures using is_permanent_failure#41651
jdm merged 2 commits intoservo:mainfrom
WaterWhisperer:retry-eventsource

Conversation

@WaterWhisperer
Copy link
Copy Markdown
Contributor

add is_permanent_failure method in NetworkError and call it from the EventSource instead of the current match against the url's scheme

Testing: ./mach test-wpt tests/wpt/tests/eventsource
Fixes: #41634

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 3, 2026
Copy link
Copy Markdown
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

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

Thank you!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jan 3, 2026
@TimvdLippe TimvdLippe added this pull request to the merge queue Jan 3, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 3, 2026
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jan 3, 2026
@jdm
Copy link
Copy Markdown
Member

jdm commented Jan 3, 2026

  ▶ OK /content-security-policy/connect-src/connect-src-eventsource-blocked.sub.html
  └   ▶ PASS [expected FAIL] Expecting logs: ["blocked","violated-directive=connect-src"]

Excellent, I was hoping there would be a CSP improvement.

@servo-highfive servo-highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Jan 4, 2026
@jdm jdm added this pull request to the merge queue Jan 4, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 4, 2026
Merged via the queue into servo:main with commit af2370e Jan 4, 2026
29 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 4, 2026
@WaterWhisperer WaterWhisperer deleted the retry-eventsource branch January 4, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retry EventSource after temporary failures

4 participants