Python

2026


macOS SMB: OSError: [Errno 9] Bad file descriptor after a silent reconnect

A backup job on a macOS SMB share kept dying with EBADF. The NAS stalled under load, macOS reconnected without a word, and because the old SMB 2.1 server granted no durable handles, every open file on the share went bad, including the bash script that was running. Only the kernel log says so.
·5 mins

HTTP 500 that still commits: never retry an ambiguous write

An ERP API can answer a PUT with a 500 after it has saved the invoice. A client that retries gets a 200 and reports success with two invoices on the books. Idempotency keys and verify-by-GET did not help, because they ran outside the retry loop.
·5 mins

Date the bug before you park it: fence, drift or silence

A coding agent found a bug mid-refactor and parked it as a known issue with `@unittest.expectedFailure`. Two `git log -S` runs showed nobody had ever decided it, so it was fixed the same night. The obvious `.extend()` fix would have broken an alias. Includes the skill that does the dating.
·8 mins