iamsanjay commented on PR #2276:
URL: https://github.com/apache/solr/pull/2276#issuecomment-1983401595

   ### Allow Compression
   HttpSolrClient provides feature to enable external compression that would 
add "ACCEPT_ENCODING: gzip" to the request headers. And we are using this 
feature in `IndexFetcher.class` while creating HttpSolrClient.
   
https://github.com/apache/solr/blob/a1104bd04a799ba99cba652922bfded51d0c2d72/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpClientUtil.java#L428-L433
   
   Now Jetty Http client by default add "ACCEPT_ENCODING: gzip" header to all 
the request.
   
   However, in `Http2SolrClient2.java` we have removed that header while 
decorating request.
   
   
https://github.com/apache/solr/blob/a1104bd04a799ba99cba652922bfded51d0c2d72/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java#L632-L634
   
   Added new commit that would allow users to enable external compression at 
request level. Now I only enabled for one request in IndexFetcher, I believe It 
should be added for each request. Or, we can add this functionality to 
Http2SolrClient which would add for all the request automatically. 


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to