From 9be94eda4e31b39a9a41e0893d7f7022295de236 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 17 Aug 2022 15:45:27 -0400 Subject: Add 'timeout' config option --- config.toml.sample | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config.toml.sample') diff --git a/config.toml.sample b/config.toml.sample index ca6313f..adcc44b 100644 --- a/config.toml.sample +++ b/config.toml.sample @@ -22,9 +22,13 @@ cert_key_dir = "certs" # avoid putting final '/' # 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. +# 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 +# When the server accept()s the client needs to send, per the Gemini spec: '' +# This timeout option determines how long the server will wait before timing them out. +# 0 is equivalent to 'do not timeout'. Naughty bots/people sit there doing nothing but clogging the ports. +timeout = 5 ## These are not specific to default and can be used with vhost ## Vhost options will override default options -- cgit v1.2.3