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

python program crash on send msg to queue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.17.0
    • None
    • proton-c, python-binding
    • redhat 7.2 - activemq-5.14.3 - Python 3.6.0

    Description

      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

      Attachments

        1. md5.py
          11 kB
          Pier Paolo Panto

        Activity

          People

            jross Justin Ross
            pierpaolo.panto Pier Paolo Panto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: