Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3427

multiple call process inside Servers implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9.3
    • None
    • Python - Library

    Description

      in all server implementations there is this:

      try:
          while True:
              self.processor.process(iprot, oprot)
      except TTransport.TTransportException as tx:
          pass
      except Exception as x:
          logger.exception(x)
      

      I fix this with:

      while True:
              if self.processor.process(iprot, oprot):
                   break
      

      PS: I noticed this because I implemented a subclass of TProcessor and I see multiple entry in my process function

      Attachments

        Activity

          People

            Unassigned Unassigned
            alexodus alessandro rossi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: