mmastrac
mmastrac
DDeno
Created by max on 4/23/2024 in #help
With Deno.serveHttp marked as deprecated is there a way to run an HTTP server off of a Deno.Conn?
I think we should probably add a Deno.serveOn API, but in the meantime you could accept the connection manually and proxy it to your internal Deno.serve listener that is listening only locally. I have a feeling Deno.serveHttp will be around for a while, so I wouldn't be too afraid of using it. We don't have a specific removal date for that API and it's pretty heavily used.
8 replies
DDeno
Created by Cherry 😈 on 2/7/2024 in #help
Embedding all of deno in Rust?
That should Just Work
17 replies
DDeno
Created by Cherry 😈 on 2/7/2024 in #help
Embedding all of deno in Rust?
Interesting. We should add tokio::main to those examples -- you'll need to use this:
#[tokio::main(flavor = "current_thread")]
#[tokio::main(flavor = "current_thread")]
17 replies
DDeno
Created by Cherry 😈 on 2/7/2024 in #help
Embedding all of deno in Rust?
Can you share your tokio runtime builder expression?
17 replies
DDeno
Created by Cherry 😈 on 2/7/2024 in #help
Embedding all of deno in Rust?
@Cherry 🍒 make sure that you are using tokio's current_thread executor -- Deno only supports that particular threading model because of threading limitations in deno_core/v8.
17 replies
DDeno
Created by Steve on 12/4/2023 in #help
Leaking operation op_http_close in tests
You can also use the asyncDispose functionality via using, which IIRC is using _server = Deno.serve which should trigger and wait on shutdown when the block ends
8 replies
DDeno
Created by Steve on 12/4/2023 in #help
Leaking operation op_http_close in tests
It looks like you need to get the return value from Deno.serve and await server.finished. The combination of fetch + serve requires this as there's a cached connection running in the background and we need to wait for it all to get torn down after the abort controller fires.
8 replies
DDeno
Created by rocketll on 11/22/2023 in #help
Most complete Deno Rust runtime?
deno_runtime is probably the best bet -- you should be able to provide the TypescriptModuleLoader from the ts_module_loader example to give it near-full functionality. If we can expose more functionality from the CLI by moving into runtime, we can definitely look at that.
7 replies
DDeno
Created by bean on 9/30/2023 in #help
Issues with Crypto Subtle Digest ext:deno_crypto/00_crypto.js
Note that we've been porting ops to the new op2 system over the last month and there's some pretty strict lockstep requirements between deno_core and extensions (ie: what we release is supported) due to the pretty massive flux.
18 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
I think we will just need to make sure the v8 resources around the modules have been released. Are you able to see if memory is reclaimed by loading/unloading 1000 modules repeatedly?
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
That duplicates the same calls for init_ops and init_ops_and_esm
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
Maybe a macro?
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
Or maybe the other way around hmm
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
I believe you need to use init_ops the second time and init_ops_and_esm for the snapshot
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
Most of the time you create the snapshot and regular runtime in different processes, however
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
Yup
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
(for example -- it is silly that you need to provide initialization data for snapshots)
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
It's just that solving it is not easy
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
I fully agree that this interface is not great
67 replies
DDeno
Created by boopus_the_snootus on 9/28/2023 in #help
`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot
That would work 🙂
67 replies