Dear All:
Our team encountered some http protocol problems when using thrift-0.12.0: 1. Just like Spark Thrift's http delay case, Since HttpClient 4.3, many classes and methods have been deprecated or terminated, HttpClient uses HTTP/2, which is much worse than HTTP/2, Apache HttpComponents httpclient 5.0 has still not released support for HTTP/2 officially. 2. In Android Thrift aspect, the underlying implementation of HttpURLConnection from Android4.4 uses OkHttp, which is based on HTTP/2 development, official team is no longer maintaining HttpClient. OTOH, compared to HTTP/1, HTTP/2 has more features and excellent performance, such as: Multiplexing, binary framing, header compression, server push etc... HTTP/1, is a little out of date, so i propose to replace HttpClient with a third-party jar that supports HTTP/2, such as OkHttp, or upgrade the java version that supports HTTP/2. hope for your reply, guys. Best Regards Zhouhu