Skip to content

fix(ext/flash): graceful server startup/shutdown#16383

Merged
littledivy merged 13 commits intodenoland:mainfrom
littledivy:fix_flash_watch_panic
Nov 11, 2022
Merged

fix(ext/flash): graceful server startup/shutdown#16383
littledivy merged 13 commits intodenoland:mainfrom
littledivy:fix_flash_watch_panic

Conversation

@littledivy
Copy link
Copy Markdown
Member

@littledivy littledivy commented Oct 21, 2022

Fixes #16267

@littledivy littledivy marked this pull request as draft October 21, 2022 16:32
@magurotuna
Copy link
Copy Markdown
Member

magurotuna commented Nov 4, 2022

I added some code to this patch. This includes:

benchmark comparison:

benchmark main (61fbfab) this PR (a9449f4)
deno_http_flash.js 72333.06 108153.61
deno_http_flash_spawn.js 113796.06 156837.42
deno_http_flash_ops.js 150221.73 161188.02
deno_http_flash_post_bin.js 6866.84 8258.77
deno_flash_send_file.js 15884.66 19876.11
deno_http_flash_ops_spawn.js 123948.80 170054.84
deno_flash_hono_router.js 59312.80 77773.57
deno_reactdom_ssr_flash.jsx 227.46 227.44

@littledivy littledivy marked this pull request as ready for review November 6, 2022 15:55
@littledivy littledivy changed the title [wip] fix(ext/flash): graceful server startup/shutdown [wip] Nov 6, 2022
@littledivy littledivy changed the title [wip] fix(ext/flash): graceful server startup/shutdown Nov 6, 2022
@magurotuna magurotuna requested review from bartlomieju, billywhizz and piscisaureus and removed request for bartlomieju November 8, 2022 09:48
Copy link
Copy Markdown
Member

@piscisaureus piscisaureus left a comment

Choose a reason for hiding this comment

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

I think LGTM, but I'm not super familiar with this system.
@littledivy Can you review and land if you approve?

@littledivy
Copy link
Copy Markdown
Member Author

littledivy commented Nov 11, 2022

Looks good. Thanks @magurotuna

kt3k added a commit that referenced this pull request Nov 13, 2022
)

#16383 made some of Node compat test cases flaky in deno_std (and when
it fails it causes segfaults).

See denoland/std#2882 for details
magurotuna added a commit to magurotuna/deno that referenced this pull request Nov 13, 2022
bartlomieju pushed a commit that referenced this pull request Nov 24, 2022
…ses in mind (#16616)

This PR resets the revert commit made by #16610, bringing back #16383
which attempts to fix the issue happening when we use the flash server
with `--watch` option enabled.
Also, some code changes are made to pass the regression test added in
#16610.
bartlomieju pushed a commit that referenced this pull request Nov 24, 2022
…ses in mind (#16616)

This PR resets the revert commit made by #16610, bringing back #16383
which attempts to fix the issue happening when we use the flash server
with `--watch` option enabled.
Also, some code changes are made to pass the regression test added in
#16610.
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.

Used port is not freed when using Deno.run with --watch

3 participants