Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.11.0
-
None
-
None
-
Patch Available
-
Patch
Description
In thrift/lib/py/src/transport/THttpClient.py in the flush method it closes and reopens the connection:
if self.isOpen(): self.close() self.open()
This code is closing the connection on every flush request. The flush request occurs for every message send, which means that keep alive cannot be used. Removing this code from flush means that keep alive can be used as the user now has control over when the connection is closed.
Attachments
Attachments
Issue Links
- is caused by
-
THRIFT-155 Python THttpClient should handle opening HTTP layer on each request automatically
- Closed
- links to