Commit f8442f6
YOSHIDA Masanori
Fix timing to set default application version ID at initiator side
- 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.1 parent 42bb050 commit f8442f6
File tree
1 file changed
+16
-0
lines changed- quickfixj-core/src/main/java/quickfix/mina/initiator
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
58 | 74 | | |
59 | 75 | | |
60 | 76 | | |
| |||
0 commit comments