Explorar o código

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

Romain Rigaux %!s(int64=10) %!d(string=hai) anos
pai
achega
5aa9718c57
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  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()