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

TProcessor - additional method to called when connection is broken

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • 0.9
    • None
    • None

    Description

      I would like to have notification when connection is broken.
      For example

      class TProcessor:
      def process(self, iprot, oprot):
      pass
      def closed(self, iprot, oprot):
      pass

      class Processor(Iface, TProcessor):
      ....
      def closed(self, iprot, oprot):
      self._handler.closed()

      class TThreadedServer():
      ....
      def handle(self, client):
      ...
      try:
      while True:
      ....
      except Exception, x:
      ....

      self.processor.closed(iprot, oprot)
      ....

      Attachments

        Activity

          People

            Unassigned Unassigned
            franis.sirkovic Franis Sirkovic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: