You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Pier Paolo Panto (JIRA)" <ji...@apache.org> on 2017/06/06 15:35:18 UTC

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

Pier Paolo Panto created PROTON-1497:
----------------------------------------

             Summary: 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,
PPP



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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