I'm testing against the SVN trunk and one of my working configs failed with "ReconnectInterval not defined". This config has the ReconnectInterval defined only in the [SESSION] sections, and not in the [DEFAULT]. Simple one-line fix; see below.
Index: core/src/main/java/quickfix/DefaultSessionFactory.java
===================================================================
— core/src/main/java/quickfix/DefaultSessionFactory.java (revision 950)
+++ core/src/main/java/quickfix/DefaultSessionFactory.java (working copy)
@@ -306,7 +306,7 @@
private int[] getLogonIntervalsInSeconds(SessionSettings settings, SessionID sessionID) throws ConfigError {
if (settings.isSetting(sessionID, Initiator.SETTING_RECONNECT_INTERVAL)) {
try
{
- String raw = settings.getString(Initiator.SETTING_RECONNECT_INTERVAL);
+ String raw = settings.getString(sessionID, Initiator.SETTING_RECONNECT_INTERVAL);
int[] ret = SessionSettings.parseSettingReconnectInterval(raw);
if (ret != null) return ret;
}
catch (Throwable e) {
|