Browse Source

[hbase] Do not close transport when flushing as it resets the headers

Romain Rigaux 10 years ago
parent
commit
5aa9718
1 changed files with 0 additions and 4 deletions
  1. 0 4
      desktop/core/src/desktop/lib/thrift_/http_client.py

+ 0 - 4
desktop/core/src/desktop/lib/thrift_/http_client.py

@@ -76,10 +76,6 @@ class THttpClient(TTransportBase):
     self._wbuf.write(buf)
 
   def flush(self):
-    if self.isOpen():
-      self.close()
-    self.open()
-
     data = self._wbuf.getvalue()
     self._wbuf = StringIO()