💾 Archived View for gemini.omarpolo.com › post › gmid-1.6.gmi captured on 2022-03-01 at 15:16:51. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-01-08)
-=-=-=-=-=-=-
Written while listening to “Stargazers” by Nightwish.
Published: 2021-03-20
Tagged with:
It took me a while to release this 1.6 version compared to the previous ones, but we’re finally here!
The headlines for this version are an improved CGI implementation and performance, but you’ll find the full changelog at the end of this entry.
libevent is now a dependency of gmid: the new event-loop should be faster than the old poll(2)-based one.
Thanks to a clear design and privilege-separation, it was easy to spawn multiple server processes: this increases the performance and prevents delays. Three server processes are run by default, but the actual number it’s tunable via the new global ‘prefork’ option.
The configuration file was enriched also with some other additions:
Unfortunately, there are also a couple of breaking changes. I had to change the CGI environment variables so they match the CGI specification. The good news is that now CGI scripts are a bit more portable and that these breaking changes were done early in this release cycle, so if you started using gmid after the 1.5 release chances are that you’re already using these new variables.
In particular:
I set up a testing page that shows the various variables:
-- text: CC-BY-SA-4.0; code: public domain unless specified otherwise
For comments, write at < blog at omarpolo dot com > or @op@bsd.network in the fediverse.