[Quickfix-developers] Acceptor session limit?
Brought to you by:
orenmnero
|
From: Alex <al...@ec...> - 2006-09-13 22:03:25
|
In my acceptor application I'm loading SessionSettings programatically. When
I set a small number of Sessions, everything works fine. But, as soon as I
raise the session number to 200, an exception is throwed. This happens when
calling SocketAcceptor acceptor = new SocketAcceptor(...):
--- BEGIN EXCEPTION ---
QuickFix.ConfigError: Configuration failed: Could not open header file:
store\\FIX.4.4-SERVER1-CLIENT33.header\r\n at
QuickFix.SocketAcceptor..ctor(Application application, MessageStoreFactory
factory, SessionSettings settings, LogFactory logFactory, MessageFactory
messageFactory)\r\n at BI.Fix.Acceptor.FormAcceptor..ctor()
--- END EXCEPTION ---
I put the code between a try...catch, debug it, and so on... and found that
the exception is raised imediatelly after the 127th session initialization .
So, 127 sessions is a limit or a magic number?
Thanks,
Alex
--- BEGIN SNIPPET ---
string fixConfigFile =
Path.Combine(System.Windows.Forms.Application.StartupPath, @"Acceptor.cfg");
SessionSettings settings = new SessionSettings(fixConfigFile);
for ( int x = 1; x <= 200; x++ )
settings.set(new SessionID("FIX.4.4", "SERVER1", "CLIENT" +
x.ToString()), new Dictionary());
FixAcceptorEngine application = new FixAcceptorEngine();
FileStoreFactory storeFactory = new FileStoreFactory(settings);
ScreenLogFactory logFactory = new ScreenLogFactory(settings);
MessageFactory messageFactory = new DefaultMessageFactory();
SocketAcceptor acceptor = new SocketAcceptor(application, storeFactory,
settings, logFactory, messageFactory);
--- END SNIPPET ---
--- BEGIN CONFIG FILE ---
[DEFAULT]
ConnectionType=acceptor
SocketAcceptPort=5002
FileStorePath=store
FileLogPath=log
StartTime=00:00:00
EndTime=00:00:00
DataDictionary=FIX44.xml
SenderCompID=SERVER1
ResetOnLogout=Y
ResetOnDisconnect=Y
--- END CONFIG FILE ---
|