Skip to content

Conversation

@ioxde
Copy link

@ioxde ioxde commented Feb 2, 2026

Using macOS 15.7.3 I was hitting "too many open files" running surfpool start --no-tui --db ./surfnet.sqlite

Same fix as postgres - share pools across storage instances. Pragmas now go through r2d2's CustomizeConnection.

Tests in 8b61fc8 show the issue and verify the fix.

ioxde added 2 commits January 31, 2026 15:05
…tion

  Tests verify:
  - Multiple storage instances share one pool (avoids "too many open files")
  - Pragmas apply to all connections, not just the first
  Prevents fd exhaustion when multiple SqliteStorage instances target
  the same database file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant