You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling acceptor.Stop() immediately after acceptor.Start(), there appears to be a data race for the sync.Once variable in session stopOnce when these two functions are called in succession. This issue was not present in v0.7.0.
Steps To Reproduce
funcTestQuickFIXAcceptor(t*testing.T) {
// Create a QuickFIX configuration file in memory for the acceptorcfg:=`[DEFAULT]ConnectionType=acceptorReconnectInterval=5StartTime=00:00:00EndTime=23:59:59HeartBtInt=30SocketAcceptPort=5000[SESSION]BeginString=FIX.4.2SenderCompID=SERVERTargetCompID=CLIENT`// Parse the settingssettings, err:=quickfix.ParseSettings(strings.NewReader(cfg))
require.NoError(t, err)
// Create a minimal application that implements the Application interfaceapp:=Application{}
// Create the store and log factoriesstoreFactory:=quickfix.NewMemoryStoreFactory()
logFactory:=quickfix.NewScreenLogFactory()
// Create the acceptoracceptor, err:=quickfix.NewAcceptor(&app, storeFactory, settings, logFactory)
require.NoError(t, err)
// Start the acceptorerr=acceptor.Start()
require.NoError(t, err)
// Stop the acceptoracceptor.Stop()
}
Description
When calling
acceptor.Stop()
immediately afteracceptor.Start()
, there appears to be a data race for the sync.Once variable in sessionstopOnce
when these two functions are called in succession. This issue was not present inv0.7.0
.Steps To Reproduce
Race Detector Error Stack
The text was updated successfully, but these errors were encountered: