Skip to content

SorobanRpc.Server never closed on shutdown #13

Description

@DeFiVC

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

  • RPC server connections are closed during shutdown

Technical Context

  • File: src/indexer/event-listener.ts, line 54

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions