maswin opened a new pull request #2204: URL: https://github.com/apache/thrift/pull/2204
https://issues.apache.org/jira/browse/THRIFT-4600 Previous patch: https://github.com/apache/thrift/pull/1572 Keep Alive connection aren't currently possible in THttpClient since flush method closes and reopens the connection every time. Adding a fix to stop closing the connection. The earlier patch failed since it doesn't clear the response which leads to ResponseNotReady errors and invalid buffer state. As per http client lib suggestion (https://docs.python.org/3/library/http.client.html) the previous response should be read and cleared before making next call. Added a block to read and clear the response while flushing. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org