Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timing to set default application version ID at initiator side #18

Merged
merged 1 commit into from
Apr 5, 2015

Conversation

siburu
Copy link
Contributor

@siburu siburu commented Apr 3, 2015

  • There are (at least) 2 threads at each host.
    • IO thread : Receives a message from an opposite and put it onto queue.
    • Application thread : Takes the message from the queue and processes it.
  • Probelm in the original implementation
    • At initiator side, Application thread sets default application version ID when receiving a first LOGON message.
    • IO thread needs default application version ID to be set to parse incoming messages.
    • If IO thread attempts to parse a message before Application thread sets default application version ID, it causes error.
  • Fixed version
    • At initiator side, IO thread sets default application version ID when receiving a first LOGON message.
    • By the way, at acceptor side, IO thread sets default application version ID from the beginning.

- There are (at least) 2 threads at each host.
    - IO thread : Receives a message from an opposite and put it onto queue.
    - Application thread : Takes the message from the queue and processes it.
- Original implementation
    - At initiator side, _Application thread_ sets default application version ID when receiving a first LOGON message.
    - IO thread needs default application version ID to be set to parse incoming messages.
    - If IO thread attempts to parse a message before Application thread sets default application version ID, it causes error.
- Fixed version
    - At initiator side, _IO thread_ sets default application version ID when receiving a first LOGON message.
    - By the way, at acceptor side, IO thread sets default application version ID from the beginning.
@chrjohn
Copy link
Member

chrjohn commented Apr 5, 2015

Hi,
thanks for the pull request. It seems this is the same problem as in http://www.quickfixj.org/jira/browse/QFJ-592 but there it was only fixed on acceptor side.
Cheers,
Chris.

chrjohn added a commit that referenced this pull request Apr 5, 2015
Fix timing to set default application version ID at initiator side
@chrjohn chrjohn merged commit cdb01cb into quickfix-j:master Apr 5, 2015
chrjohn added a commit that referenced this pull request Apr 5, 2015
Fix timing to set default application version ID at initiator side
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants