-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deno.serve
issues
#15551
Comments
These are the 3 things that are keeping me from making flash enabled by default for oak:
|
Should we support both We've already deprecated certFile/keyFile options in |
it would be nice to have access to the lower level socket options in some way also. failing that, some configurable options in api to set tcp keepAlive, noDelay, reusePort, reuseAddress etc. would be good. currently, i have no way to spin up multiple instances and have the kernel do load balancing across them easily, which reusePort would enable. |
@billywhizz There is |
@kt3k We can also remove the certFile/keyFile options. I don't really mind either way |
Minor thing. When using npm:imports, I noticed 1.25 prints an error asking the user to run with --unstable flag. The same doesn't happen for Deno.serve(), but it only works behind the unstable flag. Instead just throws, "Deno.serve is not a function". |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Since rewrite in 2846bbe I updated the original description, removing no longer relevant issues. |
Quick list of things I think we need to address with the new
--unstable
Deno.serve
API.Deno.serve
does not clearly communicate the relation to HTTP. Strawman:Deno.listenAndServeHttp
. Anyone else have other ideas?(handler: (Request, ConnInfo) => Response, opts?: ListenAndServeHttpOptions) => Promise<void>
(move handler out of options bag).cert
andkey
options tocertFile
andkeyFile
.certData
andkeyData
options that don't require reading these files from disk.server.serve()
should not be swallowed with a.catch(console.error);
.Errors occuring inserver.serve
should clean up server resourcesEach server should have it's own date interval, otherwise each invocation to the API creates a different number of resources, which is confusing to users when using the test resource sanitizer.Date
header time drift #15574op_flash_make_request
fast ops for multiple servers #15572Remove all of the unwraps when handing values from JS.Flash does not handle socket write failures at all. If a write fails, or only writes partial data, we completely ignore this and just go onto the next write...The safety comments very often don't explain why something is safe. They just say "it's safe".Flash can not handle arbitrary methods.count
to size returned bystat
#15573The text was updated successfully, but these errors were encountered: