-
Stabbypossum 1.4.31 "KATAR" Stable
released this
2026-11-23 11:49:50 +01:00 | 22 commits to master since this releaseStabbypossum 1.4.31 "KATAR" fixes the bugs found while watching production on 23 November. There were nine points: this release fixes points 2 to 8, KARD already fixed point 1, and point 9 is about the tests and is measured next.
Install
Run the image from Docker Hub: loweel/stabbypossum.
This release ships no binaries. The source archive is attached below.
The nine points
1. Requests refused while the server was busy (already fixed in KARD). When the server is slow, its client API turns some requests away with 429 and
Retry-After: 1: the request was not run, ask again in a second. The web interface took that as a failure, so the delivery marks ✔ of some of your posts stayed hidden until the page was loaded again. KARD made the interface ask again. This release changes nothing there.2. Every response kept memory. SGIAN-DUBH stopped user media from passing through memory. Every other response still did: timelines, JSON, the interface's own files. A response's body was copied whole onto the handler task's secondary stack on its way to the socket, and gzip copied it twice more. GNAT keeps that space for the life of the task, and the 16 HTTP tasks live as long as the process. Now the body goes to the socket and to gzip in 64 KiB slices, through a buffer that is freed once the body is sent, and the interface's files are read the same way.
Measured locally at 1 CPU with 16 parallel GETs of the 627 KB stylesheet every page loads:
before after live heap, plain +29 MiB +0.7 MiB live heap, gzipped +11.9 MiB more +0.7 MiB 3. The Stats page turned red at night. "Outbound failed, last hour" showed 92% in red on a quiet hour: 11 of the 12 deliveries had gone to one slow server, bologna.one. When every failure goes to the same host, the tile now stays yellow at most and names it, for example "11 of 12, all to bologna.one". Failures spread over several hosts can still turn it red.
4. A timeout's log line named the wrong limit. A delivery has two limits: 8 seconds for the whole delivery, and 5 seconds for the first byte of the answer after the request has gone out. The log showed only the 8, while the 5 was the limit that ran out. Both are now logged.
5. A message from someone new took seconds. To check a signature from an actor it had never seen, the server fetched the actor's key, then also its three collections (followers, following, outbox) just for the counts on the profile. All of that happened before the sending server got its answer. An outbox can take seconds to come back, and in production the first message from someone new took about 6 seconds. The key is now fetched alone, and the counts are fetched in the background afterwards. When the key is fetched again, the counts already known are kept.
Measured locally:
before after first contact, median 0.50 s 0.05 s 40 new actors, 320 activities 9.2 s 4.4 s 6. The certificate bundle was read for every request. Every outgoing HTTPS request read and parsed the whole certificate bundle again. It is now read once when the server starts and shared by every connection. If the bundle cannot be read, the server logs one ERROR and goes back to reading it for each request.
7. A debug line was built with debug off. For every post sent out, the server built a log line that listed every recipient and every inbox, then threw it away when debug logging was off. It is now built only when debug logging is on.
8. A peer's bad link was logged as our error. Links that a peer sends and that cannot be followed are logged as WARN, where they were ERROR: a
//in the path, anat://id, an encoded dot or slash. A link to an address that is not public stays an ERROR.9. The smoke test failed its timing checks at 1 CPU (being measured). Not a server bug, the test bench. On a single CPU the smoke's timing checks used to fail: stall, full lane, fan-out, and restart after a kill. The test's own client also gave up on a 429 instead of asking again. The first full smoke run on this release passed every check, timing ones included, with no 429 and no ERROR in the log. One run is not a frequency: the next runs measure how often these checks still fail, before any threshold is changed.
Also fixed after review
An independent review of these changes found no memory-safety problem. Its other findings are fixed here:
- an actor's key fetched again and again, for example under a forged key id, neither wipes the actor's counts nor fills the queue;
- an empty response no longer allocates memory;
- three failures that left no trace now log an ERROR.
Downloads
-
Source code (ZIP)
2 downloads
-
Source code (TAR.GZ)
2 downloads