From: "Omar Polo" Subject: Re: run just one gotwebd listen process To: Stefan Sperling Cc: gameoftrees@openbsd.org Date: Sun, 07 Sep 2025 11:29:44 +0200 Stefan Sperling wrote: > I recently made gotwebd run one server per "server" block in the > configuration file, rather than one server per amount of "prefork". > > However, this still isn't quite right. > > The listen statement is a global configuration setting and it does not > make sense to have more than one process listening on a given socket. > > Run just one process which listens and is now again called "sockets", > having been renamed from "sockets" to "server" some time ago. > > There is no good reason to run more than one "server" since server-specific > settings from gotwebd.conf are selected based on the SERVER_NAME sent in > the FastCGI request. This selection is handled by the gotweb.c process. makes sense to me; honestly i would have preferred to do the rename later but it's fine ok op@ > > M gotwebd/fcgi.c | 11+ 11- > M gotwebd/gotweb.c | 10+ 26- > M gotwebd/gotwebd.c | 47+ 66- > M gotwebd/gotwebd.h | 1+ 2- > > 4 files changed, 69 insertions(+), 105 deletions(-) > > commit - b12e0fe80f3f1d8051f7f6cb6708d3a65c163d05 > commit + 968aa2bf0321618be8cfe7a56f986fc176fd3736