Skip to content

DynamicSessions are incompatible with any MessageStore except the in memory store #484

@mattrasband

Description

@mattrasband

Because dynamic sessions don't have a setting associated with them most message stores reject them:

File Message Store:

quickfix/filestore.go

Lines 48 to 51 in 94d7217

sessionSettings, ok := f.settings.SessionSettings()[sessionID]
if !ok {
return nil, fmt.Errorf("unknown session: %v", sessionID)
}

SQL Store:

quickfix/sqlstore.go

Lines 54 to 57 in 94d7217

sessionSettings, ok := f.settings.SessionSettings()[sessionID]
if !ok {
return nil, fmt.Errorf("unknown session: %v", sessionID)
}

Mongo Store:

quickfix/mongostore.go

Lines 45 to 48 in 94d7217

sessionSettings, ok := f.settings.SessionSettings()[sessionID]
if !ok {
return nil, fmt.Errorf("unknown session: %v", sessionID)
}

It seems like in the case the session settings aren't found we should default back to the global settings if possible for dynamic session cases.

If this seems sensible I could work on adding it.

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