Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-632

isTimeToGenerateLogon() in Session always returns true -> Initiators reconnect immediately when a Server closes the connection

    Details

      Description

      The long attribute lastSessionLogon in Session never gets written and always stays 0. This makes isTimeToGenerateLogon() to always return true, because current Time - 0 will always be greater than computeNextLogonDelayMillis(). This results in Initiators reconnecting immediately and ignoring the ReconnectInterval after a Server closes the Connection.

      This should affect all versions. But I only checked 1.5.1, 1.5.0 and TRUNK.

      I am not sure where lastSessionLogon hast to be set, but I guess it should be in generateLogon(). Additionally I don't understand why lastSessionLogon gets set to 0 in nextLogon(). As far as I understand, it should never be necessary to reset it to 0. isTimeToGenerateLogon() is the only function that uses it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chrjohn Christoph John
                Reporter:
                bwege-incloud Bernhard Wege
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: