Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7946

[Java Broker] ProtocolNegotiationTest only works by accident on AMQP 1.0

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Broker-J
    • None

    Description

      ProtocolNegotiationTest.testNoConnectionOpenSent_BrokerClosesConnection attempts to send heartbeats to the broker after sending the first protocol header but before authenticating.

      In AMQP 1.0 you cannot send empty (heartbeat) frames while establishing a SASL layer - empty (heartbeat) frames are only defined for AMQP frames. To compound this error, the test is actually sending AMQP 0-8 heartbeat frames anyway

      The test also fails on Windows seemingly because windows does not report the connection has closed unless you try to read from it.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kwall Keith Wall
            rgodfrey Robert Godfrey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment