Skip to content

Add XMLHttpRequest.timeout with curl enforcement#2062

Merged
krichprollsch merged 1 commit intomainfrom
xhr-timeout
Apr 7, 2026
Merged

Add XMLHttpRequest.timeout with curl enforcement#2062
krichprollsch merged 1 commit intomainfrom
xhr-timeout

Conversation

@krichprollsch
Copy link
Copy Markdown
Member

Implement the XHR timeout property end-to-end: the JS-visible getter/setter stores the value, send() passes it to the HTTP client, and curl enforces it via CURLOPT_TIMEOUT_MS. On timeout, a timeout event is dispatched instead of error, per the XHR spec.

@krichprollsch krichprollsch self-assigned this Apr 1, 2026
Implement the XHR timeout property end-to-end: the JS-visible
getter/setter stores the value, send() passes it to the HTTP client,
and curl enforces it via CURLOPT_TIMEOUT_MS. On timeout, a `timeout`
event is dispatched instead of `error`, per the XHR spec.
@krichprollsch krichprollsch merged commit 3b39173 into main Apr 7, 2026
12 checks passed
@krichprollsch krichprollsch deleted the xhr-timeout branch April 7, 2026 07:21
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants