You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jake Farrell (JIRA)" <ji...@apache.org> on 2012/09/13 04:24:07 UTC
[jira] [Closed] (THRIFT-330) TProcessor - additional method to
called when connection is broken
[ https://issues.apache.org/jira/browse/THRIFT-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jake Farrell closed THRIFT-330.
-------------------------------
Resolution: Not A Problem
Fix Version/s: 0.9
If you would like to submit a patch for this wish list item please reopen this ticket. http://thrift.apache.org/docs/HowToContribute/
> TProcessor - additional method to called when connection is broken
> ------------------------------------------------------------------
>
> Key: THRIFT-330
> URL: https://issues.apache.org/jira/browse/THRIFT-330
> Project: Thrift
> Issue Type: Wish
> Reporter: Franis Sirkovic
> Priority: Minor
> Fix For: 0.9
>
>
> 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)
> ....
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira