Browse Source

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

Romain Rigaux 10 năm trước cách đây
mục cha
commit
5aa9718c57
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  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()