You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Robert Veitch (JIRA)" <ji...@apache.org> on 2015/10/27 03:46:27 UTC
[jira] [Created] (HTTPCLIENT-1694) Expose chunked encoding chunk
size as a configuration option
Robert Veitch created HTTPCLIENT-1694:
-----------------------------------------
Summary: Expose chunked encoding chunk size as a configuration option
Key: HTTPCLIENT-1694
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1694
Project: HttpComponents HttpClient
Issue Type: Improvement
Components: HttpClient
Affects Versions: 4.4.1
Reporter: Robert Veitch
Priority: Trivial
The chunk size to use when chunked encoding is enabled is currently hardcoded in BHttpConnectionBase.createOutputStream as 2048 bytes. It would be nice to be able to expose this configuration option for performance testing against varying chunk sizes.
Currently to achieve this, I would have to do the following:
1) Create a LoggingManagedHttpClientConnection subclass and override the createOutputStream method inherited from BHttpConnectionBase to use a configurable chunk size
2) Create a ManagedHttpClientConnectionFactory subclass and override/re-implement the create method to instantiate the subclass created in 1) rather than LoggingManagedHttpClientConnection.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org