Add a way to easily configure a ByteBufferPool
lorban opened this issue · comments
The LoadGenerator.Builder
currently lacks an easy way to set a ByteBufferPool
, something like the following:
LoadGenerator.builder()
.byteBufferPool(bufferPool)
...
Currently the only way to set the byte buffer pool is by configuring a httpClientTransportBuilder
which requires:
- 9.4.x: overriding the
HTTPClientTransportBuilder
'sbuild()
method to create aHttpClient
and set the byte buffer pool on it. - 10/11: overriding the
HTTPClientTransportBuilder
'sgetConnector()
method to return a customClientConnector
that has the byte buffer pool set on it. This has the side effect of ignoring theLoadGenerator.Builder
's configuredsslContextFactory
which must be manually set on the customClientConnector
.
None of this is straightforward nor easy to remember.