What
startIndexer creates a SorobanRpc.Server at line 54 which maintains HTTP/TLS connections. stopIndexer() only sets the running flag to false; it does not call any cleanup method on the server instance.
Why
The Fastify app and DB pool are properly closed in the shutdown handler, but the RPC server's connections are left dangling until the process exits. In a long-running graceful shutdown scenario, these connections could prevent clean process termination.
Scope
- Close the RPC server connections during shutdown
Acceptance Criteria
Technical Context
- File:
src/indexer/event-listener.ts, line 54
What
startIndexercreates aSorobanRpc.Serverat line 54 which maintains HTTP/TLS connections.stopIndexer()only sets therunningflag tofalse; it does not call any cleanup method on the server instance.Why
The Fastify app and DB pool are properly closed in the shutdown handler, but the RPC server's connections are left dangling until the process exits. In a long-running graceful shutdown scenario, these connections could prevent clean process termination.
Scope
Acceptance Criteria
Technical Context
src/indexer/event-listener.ts, line 54