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

socket.error raised in writeable is not transformed to 'ConnectionError' which will be omitted in upper layer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.26, 0.28, 0.30
    • Fix Version/s: None
    • Component/s: Python Client
    • Labels:
      None

      Description

      when calling writeable, the exception socket.error is not transformed to ConnectionError which will be omitted in upper layer

      the follow patch should fix it:

      Index: qpid/messaging/driver.py
      ===================================================================
      --- qpid/messaging/driver.py    (revision 1642638)
      +++ qpid/messaging/driver.py    (working copy)
      @@ -474,7 +474,7 @@
             sent = self.engine.read(n)
             rawlog.debug("SENT[%s]: %r", self.log_id, sent)
           except socket.error, e:
      -      self.close_engine(e)
      +      self.close_engine(ConnectionError(text=str(e)))
             notify = True
       
           if self.update_status() or notify:
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yitang Yi Tang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: