Skip to content

Conversation

npaun
Copy link
Member

@npaun npaun commented Apr 10, 2025

This PR re-enables the support for Request.signal on incoming requests that I originally added in #3488 and #3727. These changes were originally reviewed and approved in those PRs.

However, these changes caused a regression in production and had to be reverted in #3735. AbortSignals were never cloneable, and trying to clone any Request with the signal property set would fail. But with my PR, the signal property was now always set in a very common case, the request received by a worker in its fetch handler.

AbortSignal will now be cloneable once #3922 is merged. The second commit to this PR adds a regression test which now fails but will work once #3922 is merged.

@npaun npaun force-pushed the npaun/re-request-signal branch 2 times, most recently from 1dba8ef to 5f2eb65 Compare April 10, 2025 21:52
@npaun npaun changed the title wip restore request signal Re-merge Request.signal PR Apr 10, 2025
Copy link

github-actions bot commented Apr 10, 2025

The generated output of @cloudflare/workers-types matches the snapshot in types/generated-snapshot 🎉

@npaun npaun force-pushed the npaun/re-request-signal branch from 5f2eb65 to 31af0d4 Compare April 10, 2025 22:01
@npaun npaun requested a review from jasnell April 10, 2025 22:07
@npaun npaun marked this pull request as ready for review April 10, 2025 22:07
@npaun npaun requested review from a team as code owners April 10, 2025 22:07
@npaun npaun requested a review from erikcorry April 10, 2025 22:07
@npaun npaun force-pushed the npaun/re-request-signal branch from 3c652d8 to 8c43ca7 Compare April 23, 2025 22:04
@npaun npaun enabled auto-merge (squash) April 23, 2025 22:04
@npaun npaun force-pushed the npaun/re-request-signal branch from 8c43ca7 to 0372ef2 Compare April 24, 2025 16:49
@npaun npaun force-pushed the npaun/re-request-signal branch from 0372ef2 to fcb2b40 Compare April 24, 2025 19:05
@npaun npaun merged commit b3434ba into main Apr 24, 2025
18 checks passed
@npaun npaun deleted the npaun/re-request-signal branch April 24, 2025 19:35
danlapid added a commit that referenced this pull request Apr 29, 2025
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.

2 participants