-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat(Request.signal) Initial support for signal in Request + fetch and Request + Bun.serve #2097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 38 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
4425fdc
add fetch abort signal
cirospaciari 15edd3f
merge main
cirospaciari ddd709f
get aborted (still segfaults)
cirospaciari f218d11
Merge branch 'main' of https://github.com/oven-sh/bun
cirospaciari 41614da
Merge branch 'main' into ciro/fetch-abort
cirospaciari a044bc3
bidings.zig u0 error
cirospaciari a1070d6
still GC/memory error
cirospaciari 7b8c60b
fix start crash
cirospaciari 67ea732
fix AbortSignal fromJS
cirospaciari 504c0ac
change fromJS to obj.as
cirospaciari 32b49ed
addAbortSignalEventListenner
cirospaciari 122b9a5
handle abort types, and add tests
cirospaciari e84b0b9
fix tests
cirospaciari 136d2de
Merge branch 'main' of https://github.com/oven-sh/bun
cirospaciari ecb5a4e
merge main
cirospaciari bfdf26a
add custom reason test
cirospaciari 65db746
merge 2 substring methods, use MAKE_STATIC_STRING_IMPL
cirospaciari aec0efb
fix create AbortError and TimeoutError, move globalThis and exception…
cirospaciari a01a15b
Merge branch 'main' of https://github.com/oven-sh/bun
cirospaciari 09e59c2
Merge branch 'main' into ciro/fetch-abort
cirospaciari a4dd7ba
fix tests and rebuild headers
cirospaciari e424f6f
no need to check with substring reason is already an exception
cirospaciari d6c1217
no need to check with substring reason is already an exception
cirospaciari 6716d5e
fix dumb error inverting conditions for check reason
cirospaciari a76eb9e
fix custom reason behavior
cirospaciari ec6f8df
Request signal
cirospaciari aaa0aba
update branch
cirospaciari 59659ee
remove package-lock.json
cirospaciari df75246
Remove JSC.Strong from Request signal
cirospaciari 587a898
fix globals for fetch abort signal
cirospaciari 9826ea6
more tests, clone signal crashs
cirospaciari c968b72
fix AbortSignal.toJS
cirospaciari 5b2e809
fix toJS bidings for AbortSignal
cirospaciari c28cd45
add streaming tests
cirospaciari 8c9017c
fix abortion before connecting
cirospaciari e874f14
fix tests and segfault
cirospaciari 799864f
add fetch testing abort after finish
cirospaciari 9c01cb6
fix signal handler cleanup
cirospaciari cbbec6c
support signal event Bun.serve
cirospaciari a89cfa0
pull tests (failing)
cirospaciari 6198e5d
remove unsupported test
cirospaciari 2b274e2
Merge branch 'main' into ciro/fetch-abort
cirospaciari 2817ba7
formating
cirospaciari f5fe5bd
Merge branch 'ciro/fetch-abort' of https://github.com/oven-sh/bun int…
cirospaciari 483a9f8
fix server Request.signal, fix cleanNativeBindings
cirospaciari 32f6db9
add direct tests
cirospaciari a79356e
more pull tests
cirospaciari ff2d14c
fix stream tests
cirospaciari a3cc758
fix fetch, pending onAborted fix in HTTPServerWritable
cirospaciari 116ef78
Merge branch 'main' into ciro/fetch-abort
Jarred-Sumner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| //-- AUTOGENERATED FILE -- 1676656020 | ||
| //-- AUTOGENERATED FILE -- 1676922916 | ||
| // clang-format off | ||
| #pragma once | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be removeLastMatching or remove all matching?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removeAllMatchingis the right answer, fixed on 483a9f8