THRIFT-5861: Add isOpen method to TTornadoStreamTransport
diff --git a/lib/py/src/TTornado.py b/lib/py/src/TTornado.py
index 0f741c5..c721830 100644
--- a/lib/py/src/TTornado.py
+++ b/lib/py/src/TTornado.py
@@ -89,6 +89,11 @@
     def with_timeout(self, timeout, future):
         return gen.with_timeout(timeout, future)
 
+    def isOpen(self):
+       if self.stream is None:
+           return False
+       return not self.stream.closed()
+
     @gen.coroutine
     def open(self, timeout=None):
         logger.debug('socket connecting')