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

[python] Address lookup failure stops further reconnect attempts

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

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • python-binding
    • None

    Description

      Client program: https://github.com/amqphub/equipage/blob/main/qpid-proton-python/connect.py

      Test output:

      ~/code/equipage/qpid-proton-python$ python connect.py notthere.net
      Traceback (most recent call last):
        File "/home/jross/.local/lib/python3.9/site-packages/python_qpid_proton-0.38.0-py3.9-linux-x86_64.egg/proton/_events.py", line 134, in _dispatch
          m = getattr(handler, method)
      AttributeError: 'GlobalOverrides' object has no attribute 'on_connection_bound'During handling of the above exception, another exception occurred:Traceback (most recent call last):
        File "/home/jross/code/equipage/qpid-proton-python/connect.py", line 56, in <module>
          main()
        File "/home/jross/code/equipage/qpid-proton-python/connect.py", line 52, in main
          container.run()
        File "/home/jross/.local/lib/python3.9/site-packages/python_qpid_proton-0.38.0-py3.9-linux-x86_64.egg/proton/_reactor.py", line 197, in run
          while self.process():
        File "/home/jross/.local/lib/python3.9/site-packages/python_qpid_proton-0.38.0-py3.9-linux-x86_64.egg/proton/_reactor.py", line 262, in process
          event.dispatch(self._global_handler)
        File "/home/jross/.local/lib/python3.9/site-packages/python_qpid_proton-0.38.0-py3.9-linux-x86_64.egg/proton/_events.py", line 170, in dispatch
          _dispatch(handler, type.method, self)
        File "/home/jross/.local/lib/python3.9/site-packages/python_qpid_proton-0.38.0-py3.9-linux-x86_64.egg/proton/_events.py", line 137, in _dispatch
          handler.on_unhandled(method, *args)
        File "/home/jross/.local/lib/python3.9/site-packages/python_qpid_proton-0.38.0-py3.9-linux-x86_64.egg/proton/_reactor.py", line 905, in on_unhandled
          event.dispatch(self.base)
        File "/home/jross/.local/lib/python3.9/site-packages/python_qpid_proton-0.38.0-py3.9-linux-x86_64.egg/proton/_events.py", line 170, in dispatch
          _dispatch(handler, type.method, self)
        File "/home/jross/.local/lib/python3.9/site-packages/python_qpid_proton-0.38.0-py3.9-linux-x86_64.egg/proton/_events.py", line 139, in _dispatch
          m(*args)
        File "/home/jross/.local/lib/python3.9/site-packages/python_qpid_proton-0.38.0-py3.9-linux-x86_64.egg/proton/_handlers.py", line 1278, in on_connection_bound
          addrs = socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM)
        File "/usr/lib64/python3.9/socket.py", line 954, in getaddrinfo
          for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
      socket.gaierror: [Errno -2] Name or service not known
      
      ~/code/equipage/qpid-proton-python$ python connect.py example.net
      <tries to connect over and over>
      ^C
      
      ~/code/equipage/qpid-proton-python$ 
      

      https://github.com/apache/qpid-proton/blob/700781bd137bdac9ad0165f96ee2056305c89d67/python/proton/_handlers.py#L1278

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            jross Justin Ross

            Dates

              Created:
              Updated:

              Slack

                Issue deployment