Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public AsyncWrappedOutputStream(Message message, boolean needToCacheRequest, boo
basicEntity = (MutableHttpEntity)entity.getEntity();
basicEntity.setChunked(isChunking);

final int bufSize = csPolicy.getChunkLength() > 0 ? csPolicy.getChunkLength() : 16320;
final int bufSize = csPolicy.getChunkLength() > 0 ? csPolicy.getChunkLength() : 32 * 1024;
inbuf = new SharedInputBuffer(bufSize);
outbuf = new SharedOutputBuffer(bufSize);
isAsync = outMessage != null && outMessage.getExchange() != null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public PoolingAsyncClientConnectionManager getConnectionManager() {
private int soTimeout = IOReactorConfig.DEFAULT.getSoTimeout().toMillisecondsIntBound();
private boolean soKeepalive = IOReactorConfig.DEFAULT.isSoKeepAlive();
private boolean tcpNoDelay = true;
private int bufferSize = 16 * 1024;
private int bufferSize = 32 * 1024; // Http1Config::INIT_BUF_SIZE

AsyncHTTPConduitFactory() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public AsyncWrappedOutputStream(Message message, boolean needToCacheRequest, boo
basicEntity = (MutableHttpEntity)entity.getEntity();
basicEntity.setChunked(isChunking);

final int bufSize = csPolicy.getChunkLength() > 0 ? csPolicy.getChunkLength() : 16320;
final int bufSize = csPolicy.getChunkLength() > 0 ? csPolicy.getChunkLength() : 32 * 1024;
inbuf = new SharedInputBuffer(bufSize);
outbuf = new SharedOutputBuffer(bufSize);
isAsync = outMessage != null && outMessage.getExchange() != null
Expand Down Expand Up @@ -885,7 +885,7 @@ protected void setupNewConnection(String newURL) throws IOException {
sslURL = null;

//reset the buffers
int bufSize = csPolicy.getChunkLength() > 0 ? csPolicy.getChunkLength() : 16320;
int bufSize = csPolicy.getChunkLength() > 0 ? csPolicy.getChunkLength() : 32 * 1024;
inbuf = new SharedInputBuffer(bufSize);
outbuf = new SharedOutputBuffer(bufSize);
try {
Expand Down
Loading