From 8cbc34cc274c6d37baba2ce76757d1411430ebee Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 15 Aug 2022 10:35:28 -0400 Subject: Make fork() toggleable. Touch up code that exit() - would end server otherwise. Touch up log entries. --- config.toml.sample | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.toml.sample') diff --git a/config.toml.sample b/config.toml.sample index 3552ae3..ca6313f 100644 --- a/config.toml.sample +++ b/config.toml.sample @@ -21,6 +21,10 @@ cert_key_dir = "certs" # avoid putting final '/' # because generating cert/key pairs will fail and cause the program to die. # Setting the following to 'false' will not emit an error. cert_key_dir_write_warning = true +# For each accepted connection a fork() is called. This toggles if that should happen or not. +# For debugging or memory reasons, it may help to set this to false, though it may result in clients timing out if your server is busy serving a client. +# Will cause 'timed-out' and 'sysread failed' to appear at the same time in log files. +fork = true ## These are not specific to default and can be used with vhost ## Vhost options will override default options @@ -43,6 +47,8 @@ default_mime = 'text/plain' # A Vhost is *required* since it both serves as vhost and server name identification (sni) # Vhost example - probably you want to see that it actually works right away +# `$ ncat --ssl localhost 1965'. Quick! You have 5 seconds! type: 'gemini://localhost ' (don't forget the whitespace as required by gemini spec) +# (ncat (probably) packaged with nmap) ['localhost'] # Generate certificate and key automatically? Uses cert_key_dir auto_cert = true -- cgit v1.2.3