Skip to content

quickfix.Initiator.Stop and quickfix.Acceptor.Stop should also call store.Close #717

Open

Description

@AlexandrosKyriakakis

From my pov, when the application (Initiator/Acceptor) stops it should also call store.Close and then when app starts again, it should create a new store using the storeFactory.Create.

Why store.Close is never called?

Activity

  1. vyourtchenko-connamara commented on Dec 26, 2025

    @vyourtchenko-connamara

    Based on the code, it seems that the garbage collector handles the cleanup of the store once the session dies

  2. LucasWilsonGit commented on Aug 24, 2026

    @LucasWilsonGit

    Yes perhaps this can leak file descriptors or db connections depending on the MessageStore.

  3. 6democratickim9 commented on Oct 15, 2026

    @6democratickim9

    Hi, I'd like to work on this issue.

    Following the discussion above, I'd like to ensure that Stop() calls
    MessageStore.Close() after session processing has finished, so cleanup
    doesn't rely on garbage collection.

    Before implementing this, could you clarify the expected restart behavior?
    Should calling Start() again on the same Initiator/Acceptor instance be
    supported, with a new store created through MessageStoreFactory.Create,
    or should applications construct a new instance after Stop()?

    I'd add regression tests for cleanup and the agreed restart behavior.
    Please let me know if anyone is already working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions