-
Notifications
You must be signed in to change notification settings - Fork 5k
serve: trace handler callbacks from the wrapper instead of rooting them as Strong #32215
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
Closed
Closed
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
386b212
serve: defer js_value downgrade until no dispatch can fire
alii 65c76a2
serve: run deinit_if_we_can when the last websocket closes
alii 0ed8dfd
serve: answer 503 instead of panicking when a late request races wrap…
alii 9b3903d
test: late keep-alive request to a route after stop+GC does not crash
alii 9e8171a
serve: close idle keep-alive sockets in graceful stop_listening
alii 4146480
test: server wrapper survives GC while a websocket is connected after…
alii 0929f8b
serve: gate dispatch on js_value being strong, not just non-finalized
alii 868f7ae
test: account for prototype in heapStats baseline; handle closed-sock…
alii 4c08ec8
serve: add WriteBarrier slots for handler callbacks on the wrapper
alii b8498fd
serve: write fetch/error/nodeHTTP handler values into wrapper slots
alii efd9e96
serve: use individual ws handler slots, not a wsHandlers object
alii 58ab885
serve: trace JSServerWebSocket → server wrapper via m_server slot
alii 71dac52
serve: drop ServerConfig handler Strongs; read shadows, root via wrapper
alii d6440ae
serve: write ws handler shadows into wrapper slots; drop gcProtect
alii 44f8414
serve: store on_clienterror in wrapper slot, drop StrongOptional
alii ce62668
serve: store all_closed_promise in wrapper slot, drop JSPromiseStrong…
alii 0c23046
serve: wrap handlers with async context at slot-write, not at parse
alii f91ef8b
serve: tests for the GC-traced handler redesign
alii 40c06c1
serve: DevServer on_request check uses !is_empty() not is_some()
alii ab7020e
serve: dedup Handler.server field after rebase onto ws-liveness branch
alii 7984ef9
bake: deref html_bundle in DevServer Drop
alii c1310d1
[autofix.ci] apply automated fixes
autofix-ci[bot] 33b691a
serve: clear ws slots when reload removes websocket; normalize undefi…
alii 27b7600
serve: extract wrap_handler_slot + respond_stopped_503 helpers; fix g…
alii 2de5aff
serve: respond_stopped_503 honors per-protocol close semantics
alii 425891d
test: cover node:http late-request, reload-drops-ws-handler; fix self…
alii bc209fb
serve: gate on_client_error_callback + reload_static_routes on Strong…
alii c502b16
serve: balance websocket count for server-initiated ws.close/terminate
alii cce3f38
[autofix.ci] apply automated fixes
autofix-ci[bot] 831dcfe
test: capture true heapStats baseline; longer drain for libuv platforms
alii ee84a66
serve: drop slot getter accessors; revert close_idle_connections in g…
alii 560b617
[autofix.ci] apply automated fixes
autofix-ci[bot] ca7a771
serve: re-entrance flag on deinit_if_we_can instead of TERMINATED pro…
alii 2f8be64
serve: drop dead AnyServer::js_value; fix stale close_idle prose afte…
alii 282cf09
Merge branch 'main' into ali/serve-handlers-gc-traced-v2
alii 5034967
serve: review fixups for handler GC-tracing redesign
alii d9e1d97
serve: clear ws.handler.server after the abrupt-stop drain, not before
alii 0d4accc
test(serve): exercise ws-close auto-downgrade; dedup late keep-alive …
alii b7bface
[autofix.ci] apply automated fixes
autofix-ci[bot] 3385b43
serve: copy handler.server before uws re-entry; reload writes slots v…
alii beaddea
serve: reuse server_js for routeList slot in reload; trim stale asser…
alii 3263581
Merge branch 'main' into ali/serve-handlers-gc-traced-v2
alii b7230ce
serve: collapse wrap_handler_slot server_js to plain JSValue
robobun 874e91e
Merge branch 'main' into ali/serve-handlers-gc-traced-v2
robobun ab24590
ci: retrigger
robobun 35f9dc6
[autofix.ci] apply automated fixes
autofix-ci[bot] 3feca20
serve(ws): re-check is_closed() after reason toString() in ServerWebS…
robobun b9275c7
test(serve): capture re-entrant-close target ws in message(), not by …
robobun 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.