The OpenD Programming Language

RequestServer.useFork

Uses a fork() call, if available, to provide additional crash resiliency and possibly improved performance. On the other hand, if you fork, you must not assume any memory is shared between requests (you shouldn't be anyway though! But if you have to, you probably want to set this to false and use an explicit threaded server with serveEmbeddedHttp) and stop may not work as well.

Meta

History

Added August 12, 2022 (dub v10.9). Previously, this was only configurable through the -version=cgi_no_fork argument to dmd. That version still defines the value of cgi_use_fork_default, used to initialize this, for compatibility.