[jira] [Commented] (PROTON-1497) python program crash on send msg to queue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (PROTON-1497) python program crash on send msg to queue

JIRA jira@apache.org

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

Jiri Danek commented on PROTON-1497:

Probably use the heartbeat parameter on https://qpid.apache.org/releases/qpid-proton-master/proton/python/api/proton.reactor.Container-class.html#connect.

> python program crash on send msg to queue
> -----------------------------------------
>                 Key: PROTON-1497
>                 URL: https://issues.apache.org/jira/browse/PROTON-1497
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c, python-binding
>    Affects Versions: 0.17.0
>         Environment: redhat 7.2 - activemq-5.14.3 - Python 3.6.0
>            Reporter: Pier Paolo Panto
>         Attachments: md5.py
> In the attached file there is an on_message method that performs a lenghty calculation whenever a message is receivede on the input queue. In this case, the branch that gets executed is the one starting at line 123.
> A the end of the branch a new message is created and sent so an out queue.
> The problem is that if the calculation takes a long time (>1min) to finish, randomly the program crashes when trying to execute the send instruction
>  (line 157). I also tryed to encapsulate the send into a try/except clause, but the code inside the except never gets executed.
> Moreover, the exit code (echo $?) when the program crashes is 0
> When this happens, I get this message in the log file:
> handlers.py:234 in print_error(): local-idle-timeout expired
> but setting the timeout parameters for the connection has no effect.
> What could be causing this behaviour?
> Best Regard,

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]