Skip to content

Session#verify is misleading #939

Description

@philipwhiuk

From the name verify you could be excused from thinking that all it does is a form of validation.

Indeed the majority of the message does do this, checking sequence numbers and so-on.

But the last line is to call fromCallback

fromCallback(msgType, msg, sessionID);

This radically expands the verify method to actually being the point of entry to the Application for FIX traffic.

I can see two options

  1. Rename verify to verifyAndProcessMessage
  2. Move the fromCallback call outside verify and restructuring callers.

Activity

  1. changed the title [-]Session#verify is misleading[/-] [+]`Session#verify` is misleading[/+] on Feb 6, 2025
  2. chrjohn commented on Feb 8, 2025

    @chrjohn
    Member

    Thanks @philipwhiuk , in my opinion I'd go for option 2.
    Since these are internal methods it shouldn't be a problem.

  3. added theissue type on May 14, 2025
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions