You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Santhosh Kumar <sa...@gmail.com> on 2018/12/23 11:39:49 UTC

Http/2 is slower than Http-1.1

Hi,

    I tried to upgrade my client (httpclient4.x to httpclient5.x beta-5),
for establishing a http2 connection to my another server(tomcat-9.x). I
have used this example to make a http2 connection and keep the socket open
and do transactions between my servers.

https://hc.apache.org/httpcomponents-core-5.0.x/httpcore5-h2/examples/org/apache/hc/core5/http/examples/Http2ConscriptRequestExecutionExample.java

But, comparatively httpclient-4(not keep-alive) is performing better than
httpclient-5, the response time is ~3 times higher than previous version.

[image: Selection_012.png]

Am i missing any configuration?
-- 
*With Regards,*
*Santhosh Kumar J*