You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Justin Ross (Jira)" <ji...@apache.org> on 2022/04/25 12:43:00 UTC

[jira] [Created] (PROTON-2538) [python] Address lookup failure stops further reconnect attempts

Justin Ross created PROTON-2538:
-----------------------------------

             Summary: [python] Address lookup failure stops further reconnect attempts
                 Key: PROTON-2538
                 URL: https://issues.apache.org/jira/browse/PROTON-2538
             Project: Qpid Proton
          Issue Type: Bug
          Components: python-binding
            Reporter: Justin Ross


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

Test output:
{noformat}
~/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$ 
{noformat}
https://github.com/apache/qpid-proton/blob/700781bd137bdac9ad0165f96ee2056305c89d67/python/proton/_handlers.py#L1278



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org