- Allow the clients of acceptor to specify their own tls.Config #667
- Adds NextExpectedSeqNum setting #668
- Reinit stop sync to prevent deadlock on sequential start/stops #669
- Check logon auth before resetting store #670
- Reverts ToAdmin call sequencing #674
- Introduce message iterator to avoid loading all messages into memory at once upon resend request #659
- Only lock fieldmap once during message parsing #658
- Optimize tag value parsing #657
- Use bytes.Count to count the number of message fields #655
- Port config documentation into proper go doc format #649
- Support TLS configuration as raw bytes #647
- Use the Go generated file convention #660
- Fix stuck call to Dial when calling Stop on the Initiator #654
- Do not increment NextTargetMsgSeqNum for out of sequence Logout and Test Requests #645
- Adds log to readLoop just like writeLoop #642
- Maintain repeating group field order when parsing messages #636
- Change filestore.offsets from map[int]msgDef to sync.Map #639
- Unregister sessions on stop #637
- Corrects ResetOnLogon behavior for initiators #635
- Add AllowUnknownMessageFields & CheckUserDefinedFields settings as included in QuickFIX/J #632
- Prevent message queue blocking in the case of network connection trouble #615 #628
- Corrects validation of multiple repeating groups with different fields #623
- Preserve original body when resending #624
- Add Weekdays config setting as included in QuickFIX/J #590
MessageStore
Refactor
The message store types external to a quickfix-go application have been refactored into individual sub-packages within quickfix
. The benefit of this is that the dependencies for these specific store types are no longer included in the quickfix package itself, so many projects depending on the quickfix package will no longer be bloated with large indirect dependencies if they are not specifically implemented in your application. This applies to the mongo
(MongoDB), file
(A file on-disk), and sql
(Any db accessed with a go sql driver interface). The memorystore
(in-memory message store) syntax remains unchanged. The minor drawback to this is that with some re-packaging came some minor syntax changes. See #547 and #592 for more information. The relevant examples are below.
MONGO
import "github.com/quickfixgo/quickfix"
...
acceptor, err = quickfix.NewAcceptor(app, quickfix.NewMongoStoreFactory(appSettings), appSettings, fileLogFactory)
becomes
import (
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/store/mongo"
)
...
acceptor, err = quickfix.NewAcceptor(app, mongo.NewStoreFactory(appSettings), appSettings, fileLogFactory)
FILE
import "github.com/quickfixgo/quickfix"
...
acceptor, err = quickfix.NewAcceptor(app, quickfix.NewFileStoreFactory(appSettings), appSettings, fileLogFactory)
becomes
import (
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/store/file"
)
...
acceptor, err = quickfix.NewAcceptor(app, file.NewStoreFactory(appSettings), appSettings, fileLogFactory)
SQL
import "github.com/quickfixgo/quickfix"
...
acceptor, err = quickfix.NewAcceptor(app, quickfix.NewSQLStoreFactory(appSettings), appSettings, fileLogFactory)
becomes
import (
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/store/sql"
)
...
acceptor, err = quickfix.NewAcceptor(app, sql.NewStoreFactory(appSettings), appSettings, fileLogFactory)
- Resolves outstanding issues with postgres db creation syntax and
pgx
driver #598 - Fix sequence number bug when storage fails #432
BUG FIXES
- Remove initiator wait [GH 587]
- for xml charset and bug of "Incorrect NumInGroup" [GH 368, 363, 365, 366]
- Allow time.Duration or int for timeouts [GH 477]
- Trim extra non-ascii characters that can arise from manually editing [GH 463, 464]
ENHANCEMENTS
- Remove tag from field map [GH 544]
- Add message.Bytes() to avoid string conversion [GH 546]
- Check RejectInvalidMessage on FIXT validation [GH 572]
BUG FIXES
- Fix repeating group read tags lost [GH 462]
- Acceptance test result must be predictable [GH 578]
- Makes event timer stop idempotent [GH 580, 581]
- Added WaitGroup Wait in Initiator [GH 584]
FEATURES
- PersistMessages Config [GH 297]
- MaxLatency [GH 242]
- ResetOnDisconnect Configuration [GH 68]
- Support for High Precision Timestamps [GH 288]
- LogonTimeout [GH 295]
- LogoutTimeout [GH 296]
- Socks Proxy [GH 375]
ENHANCEMENTS
- Add SocketUseSSL parameter to allow SSL/TLS without client certs [GH 311]
- Support for RejectInvalidMessage configuration [GH 336]
- Add deep copy for Messages [GH 338]
- Add Go Module support [GH 340]
- Support timeout on ssl connection [GH 347, 349]
- Dynamic Sessions [GH 521]
- Upgrade Mongo Driver to support transactions [GH 527]
BUG FIXES
- header and trailer templates use rootpath [GH 302]
- Initiator stop panic if stop chan's already closed [GH 359]
- Connection closed when inbound logon has a too-low sequence number [GH 369]
- TLS server name config [GH 384]
- Fix concurrent map write [GH 436]
- Race condition during bilateral initial resend request [GH 439]
- Deadlock when disconnecting dynamic session [GH 524]
- Align session's ticker with round second [GH 533]
- Seqnum persist and increment fix [GH 528]
FEATURES
- CheckLatency [GH 241, 266]
- ResendRequestChunkSize [GH 243, 245]
- EnableLastMsgSeqNumProcessed [GH 253, 256]
ENHANCEMENTS
- config.SocketTLSForTesting(bool) [GH 235]
- API Interface Enhancements [GH 251, 252, 254, 255, 257, 258, 259]
- Misc. Performance Optimizations [GH 260, 261, 263, 264, 265, 268, 270, 271, 272, 273, 274, 275]
- TLS Configuration [GH 279, 280]
- Use data dictionary for parsing fix messages [GH 281]
BUG FIXES
- Resend logon fix [GH 244]
- PossDup messages with seqnum too low should not be sent to FromCallbacks [GH 246, 247]
- Router should not reject admin messages or business rejects [GH 249, 250]
- Fixes file log output for incoming, outgoing [GH 262]
- message.String() returns rawMessage if set, builds otherwise [GH 269]
- Use timestamp with time zone for postgres sql [GH 286]
FEATURES
- Session Scheduling [GH 31, 195, 196, 197, 198, 200, 201, 202, 203, 204, 205, 211, 212, 218, 220]
- TimeZone configuration [GH 206]
- StartDay, EndDay for week long sessions [GH 207, 239]
- Support for connection over SSL [GH 63, 193]
- SocketConnectHost/Port [GH 65, 217]
- ResetOnLogout Configuration enhancement [GH 67, 192]
- SocketAcceptAddress, ipv6 support [GH 83, 215]
- RefreshOnLogon [GH 214]
ENHANCEMENTS
- Reject Logon Support [GH 57, 225]
- FIX Decimal [GH 114, 223, 224, 227, 228]
- test refactoring, leveraging testify mock assertions [GH 186]
- KISS on registry, session management [GH 208]
- moving and renaming test jigs [GH 210]
- Config Enhancements [GH 216]
- travis uses go 1.7 [GH 219]
- adds 'generated.go' suffix to generated source [GH 221]
- vendored deps GH [GH 222, 226]
- renames SQLStore config settings [GH 229]
- Add FieldMap.{SetInt, SetString} [GH 236]
BUG FIXES
- DefaultApplVerID Configuration not translating enum names [GH 89, 213]
- Dropped issues in logout state [GH 187, 188]
- correctly increments in target seq num on logout for in session state [GH 189]
- SendToTarget should return an error if toApp returns DoNotSend [GH 190, 191]
- Logon fix [GH 194]
- onlogout calls depend on session state [GH 199]
- fixes bug in resend state where resend response is processed incomplete [GH 230]
- fixes logic around logon message with sequence number too high [GH 231]
- SequenceReset, Resent Messages not hitting ToAdmin/ToApp [GH 232, 233]
- Next MsgSeqNo after received ResetSeqNumFlag=Y [GH 238, 240]
FEATURES
- ReconnectInterval Initiator Configuration [GH 66, 161]
ENHANCEMENTS
- Generate Getters for messages [GH 118]
- Drop generate-* apps into cmd/ [GH 125, 150]
- Misc field type refactoring [GH 145]
- Cmd gen [GH 146, 147]
- refactoring enum generation [GH 148]
- pipelining generation [GH 149]
- Sending a message to an unlogged-in session, results an error [GH 173, 182]
- adds event logging related to session events [GH 175]
- Error handling around session code enhancement [GH 176]
- refactoring of session code [GH 183]
- Gen header beginstring [GH 184]
BUG FIXES
- Do not incr target seq num when seq num too high [GH 151]
- can't parse securitylist message [GH 153, 155]
- Concurrent map operations on Acceptor.Stop() [GH 156]
- Return requiredConfigurationMissing when "FileStorePath" not found [GH 157]
- Checks around HeartBtInt configuration [GH 158]
- Removed complexity around closing Initiator sessions [GH 159]
- Proper FIX logout sequence [GH 160]
- Session logic doesn't account for a failure when calling messageStore methods (e.g. persisting a message) [GH 162]
- Session event loop [GH 164]
- Session event loop follow up [GH 165]
- Handle OnLogon/Logout callbacks in user space [GH 167]
- Session deadlocks if both initiator and acceptor enter the resend state [GH 169, 179]
- Initiator.Stop() does not wait for Acceptor's logout response, causing a resend on next logon [GH 170, 172]
- Reset peer timer after logon [GH 171]
- Ensure OnLogon is called even if seq num too high [GH 174]
- increment target seq num on logout [GH 177]
- fixes bogus resend logic [GH 178]
- Session forgets it is in resend state [GH 180, 181]
- fixes donotsend logic [GH 185]
FEATURES
- ValidateFieldsOutOfOrder Configuration Option [GH 107]
ENHANCEMENTS
- Datadictionary tests [GH 108]
- Proposal to add public method to convert raw fix message to quickfix.Message [GH 110]
- Make gen package public [GH 113]
- Make gen import path relative [GH 119]
- Validator interface [GH 120]
- Expose IncorrectDataFormat [GH 121]
- Spelling, fmtness [GH 123]
- More verbose error text on conditionally required field BMR [GH 131]
- better error handling in gen package [GH 134]
- Include timestamp in messages file log [GH 135]
- extracts repeating group interface [GH 137]
- Header, Body, Trailer FieldMap types [GH 138]
- Datadictionary/Gen refactor [GH 140]
- Gen value timestamp [GH 141]
- Slight gen revert [GH 142]
- replaced regex with faster impl for float parsing [GH 143]
- Expose sql.DB's SetConnMaxLifetime() in settings [GH 144, 139]
BUG FIXES
- Routing Incorrect for FIXT [GH 101]
- Validation Error for component tag [GH 102]
- Unmarshal error for repeating Group [GH 103]
- Marshaler/Reflector tries to convert time.Time struct into fix format [GH 109]
- nil pointer panic if no config.DataDictionary specified [GH 127]
- fixes required group validation error [GH 129]
- RefTagID is not known to BusinessMessageReject type [GH 130]
FEATURES
- Persisted Store [GH 32]
- Initializer Constructors for Generated Messages [GH 69]
- Field Setters for generated messages [GH 70]
- Support for optional components, component setters [GH 79]
- Setters for repeating groups in components [GH 87]
- DB Store [GH 88]
ENHANCEMENTS
- Gen refactor [GH 78]
- Refactoring data dictionary pkg [GH 93]
BUG FIXES
- Initiator panic if connection closed [GH 59]
- New logs overrides old ones [GH 72]
- Session sending message timeout [GH 80]
- Potential FIX50 Market Data marshaling bug [GH 91]
- Allow settings values to contain equals signs [GH 97]
- Error when trying to unmarshal FIX message (FIX 5.0) [GH 99]
- Initial release