       enter: ->
         @emptyMessageBuffer()
       events:
+        connectTimeout: ->
+          @transitionTo(@STATE.FINAL)
         packet: (packet) ->
           @addToMessageBuffer(packet)
         message: ->

    SENT_LOGIN7_WITH_STANDARD_LOGIN:
      name: 'SentLogin7WithStandardLogin'
      events:
        packet: (packet) ->
          @sendPacketToTokenStreamParser(packet)
        message: ->

      name: 'Final'
      enter: ->
        @cleanupConnection()
      events:
        connectTimeout: ->
          # Do nothing, as the timer should be cleaned up.

  constructor: (@config) ->
    @defaultConfig()
