瀏覽代碼

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

Romain Rigaux 10 年之前
父節點
當前提交
5aa9718
共有 1 個文件被更改,包括 0 次插入4 次删除
  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()