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

[jira] [Comment Edited] (PROTON-2528) Python client does not reconnect if initial connection fails with ENETUNREACH

    [ https://issues.apache.org/jira/browse/PROTON-2528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17519064#comment-17519064 ] 

Ievgen Popovych edited comment on PROTON-2528 at 4/7/22 6:00 PM:
-----------------------------------------------------------------

Some information to aid debugging, I've set some prints with debugger (proton 0.37 from pypi):
 * [_io.py:68|https://github.com/apache/qpid-proton/blob/0.37.0/python/proton/_io.py#L68] {code}f"socket connect exception error: {e.errno}"{code}
 * [_handlers.py:1361|https://github.com/apache/qpid-proton/blob/0.37.0/python/proton/_handlers.py#L1361] {code}f"IO selectable error handling: {e}"{code}

Testing, when the network is unreachable I get:
{code}
socket connect exception error: 101
{code}
And reactor/container will exit with exception {{OSError: [Errno 101] Network is unreachable}}

When the host is unreachable:
{code}
socket connect exception error: 115
IO selectable error handling: 113
{code}
and proton tries to reconnect.


was (Author: JIRAUSER287753):
Some information to aid debugging, I've set some print statement with debugger (proton 0.37 from pypi):
* on {{_io.py:68}} print {{f"socket connect exception error: \{e.errno\}"}}
* on {{_handlers.py:1361}} print {{f"IO selectable error handling: \{e\}"}}

Testing, when the network is unreachable I get:
{quote}socket connect exception error: 101{quote}
And reactor/container will exit with exception {{OSError: [Errno 101] Network is unreachable}}

When the host is unreachable:
{quote}socket connect exception error: 115
IO selectable error handling: 113{quote}
and proton tries to reconnect.

> Python client does not reconnect if initial connection fails with ENETUNREACH
> -----------------------------------------------------------------------------
>
>                 Key: PROTON-2528
>                 URL: https://issues.apache.org/jira/browse/PROTON-2528
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>            Reporter: Ievgen Popovych
>            Priority: Major
>
> {{ENETUNREACH}} can happen when target network is unreachable for example when the network stack was not fully initialized yet or when a network is not connected temporarily, etc.
> Since this type of error can very much be transient - I'd expect proton to try (re)connect as usual (just like it does for {{EHOSTUNREACH}}).
> This is on recent Fedora.
> Easy ways to reproduce include disabling network connection and running proton trying to connect to some non-link-local address.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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