Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-5812

python high level API client receiver.fetch(timeout=N) blocks forever in select() if broker is stopped (kill -STOP)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 0.28
    • Fix Version/s: None
    • Component/s: Python Client

      Description

      Description of problem:
      python high level API client qpid.messaging.Receiver.fetch(timeout=N) blocks program execution forever if qpidd is stopped by kill -STOP `pidof qpidd` just before receiver call.

      Version-Release number of selected component (if applicable):
      (any)

      How reproducible:
      100%

      Steps to Reproduce:
      1. service qpidd restart
      2. python # interacive shell, terminal A
      import qpid.messaging
      c=qpid.messaging.Connection('localhost')
      c.open()
      s=c.session();
      S=s.sender("ADDR;

      {create: sender}

      ")
      S.send("sdfdsfdsfsd", timeout=5);
      R=s.receiver("ADDR;

      {create: sender}

      ")
      3. kill -STOP `pidof qpidd` #3 in terminal B
      4. back in python terminal A
      R.fetch(timeout=5)

      Actual results:
      Call at step 4 blocking forever.

      Expected results:
      Call at step 4 blocking 5 secs.

        Attachments

          Activity

            People

            • Assignee:
              pmoravec Pavel Moravec
              Reporter:
              pmoravec Pavel Moravec
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: