Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1004

Inconsistency in container.create_sender

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

Details

    Description

      For URL = "localhost:5672/examples"
      Using the API in two different ways:

          def on_start(self, event):
              event.container.create_sender(URL)
      

      Yields an attach with the following target:
      [address="examples", durable=0, timeout=0, dynamic=false]

      But this variation yields something different:

          def on_start(self, event):
              conn = event.container.connect(URL, heartbeat=8)
              event.container.create_sender(conn, URL)
      

      yields:
      [address="localhost:5672/examples", durable=0, timeout=0, dynamic=false]

      The attach targets should be consistent across these examples. I believe the first example is the correct one.

      Attachments

        Activity

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

          People

            gsim Gordon Sim
            tross Ted Ross

            Dates

              Created:
              Updated:

              Slack

                Issue deployment