Randy Marsden
dcf881f1e8
fix: close leaked state.db read-only connections in session discoverability/recovery
...
Three sites used `with sqlite3.connect(f"file:...?mode=ro", uri=True) as conn:`,
which only scopes the transaction — sqlite3.Connection's context manager never
calls close(). Same recurring bug class as #1421/#1494/#2233/#3904. On a
long-lived server each poll leaked a state.db (+ -wal/-shm) fd until the
process hit macOS's 256 soft FD limit and writes started failing.
Wrap all three in contextlib.closing(), matching the pattern already used
elsewhere in these files.
2026-08-07 21:34:34 +00:00
..
2026-03-31 07:02:47 +00:00
2026-07-14 16:36:23 +08:00
2026-07-16 22:28:35 +08:00
2026-07-11 15:20:41 -07:00
2026-07-31 20:27:32 -04:00
2026-08-01 05:53:07 -04:00
2026-07-18 20:07:54 -07:00
2026-04-24 01:24:51 +00:00
2026-06-20 05:36:56 +00:00
2026-07-01 07:54:48 -05:00
2026-06-26 00:12:09 +00:00
2026-07-04 21:42:32 +08:00
2026-07-29 18:22:22 +00:00
2026-07-29 17:41:46 +00:00
2026-05-19 21:35:10 -04:00
2026-07-20 17:49:23 +00:00
2026-07-20 17:49:23 +00:00
2026-07-31 09:57:51 +08:00
2026-07-14 16:01:56 +08:00
2026-07-08 20:17:45 +00:00
2026-05-10 15:21:24 +08:00
2026-07-20 16:30:04 +00:00
2026-06-23 23:40:45 +00:00
2026-07-13 17:56:44 -04:00
2026-07-31 17:31:12 +08:00
2026-07-13 19:58:41 +08:00
2026-07-02 01:15:57 +00:00
2026-07-18 13:47:04 +02:00
2026-07-09 10:54:06 -07:00
2026-07-18 20:32:56 +02:00
2026-06-05 11:35:26 -07:00
2026-06-02 03:58:02 +00:00
2026-07-29 18:36:24 +00:00
2026-07-22 18:45:24 +00:00
2026-07-13 19:58:41 +08:00
2026-07-09 04:22:21 +00:00
2026-06-18 19:22:29 +00:00
2026-07-22 15:06:33 -04:00
2026-07-15 20:59:59 +00:00
2026-08-06 02:26:24 +00:00
2026-07-31 17:31:12 +08:00
2026-06-19 13:16:39 -04:00
2026-05-21 17:43:54 +00:00
2026-08-07 21:34:34 +00:00
2026-06-15 00:10:01 -07:00
2026-07-02 02:36:09 +00:00
2026-07-04 21:40:21 +00:00
2026-07-17 15:36:55 -06:00
2026-08-07 21:34:34 +00:00
2026-07-23 01:21:59 +00:00
2026-05-27 20:57:32 +08:00
2026-06-19 22:09:17 +00:00
2026-05-01 12:10:48 +00:00
2026-07-07 19:48:19 +00:00
2026-08-01 01:47:51 +08:00
2026-06-26 20:49:13 +00:00
2026-07-25 00:33:41 +02:00
2026-06-04 16:46:20 -07:00
2026-06-07 23:18:51 -07:00
2026-08-04 10:58:24 -04:00
2026-07-09 15:57:21 -07:00
2026-05-19 02:27:12 -06:00
2026-07-05 06:45:50 +08:00
2026-07-07 02:07:39 +00:00
2026-07-29 18:22:22 +00:00
2026-07-13 17:47:58 +00:00