Skip to content

Add documentation about fork safety with Wasmtime::Engine #174

@ianks

Description

@ianks

Most Ruby servers use some type of pre-forking mechanism to provide parallel request processing. Unfortunately, this can causes processes to deadlock if you compile Wasm before forking (when using Wasmtime::Engine.new(parallel_compilation: true)).

As such, if any compilations needs to be done before forking, you need to use Wasmtime::Engine.new(parallel_compilation: false). Let's add something like this to the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions