You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2019/09/06 07:43:04 UTC

[httpcomponents-core] branch bug-fixes created (now 0cb5167)

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a change to branch bug-fixes
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git.


      at 0cb5167  HTTPCORE-597: AsyncEntityProducers#createText always throws IllegalArgumentException

This branch includes the following new commits:

     new 0cb5167  HTTPCORE-597: AsyncEntityProducers#createText always throws IllegalArgumentException

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[httpcomponents-core] 01/01: HTTPCORE-597: AsyncEntityProducers#createText always throws IllegalArgumentException

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch bug-fixes
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git

commit 0cb51672f7316b8b4423a78bec4cab5cea4e0059
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Fri Sep 6 09:42:47 2019 +0200

    HTTPCORE-597: AsyncEntityProducers#createText always throws IllegalArgumentException
---
 .../java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java
index 4fca51d..3fd20d1 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/AsyncEntityProducers.java
@@ -115,7 +115,7 @@ public final class AsyncEntityProducers {
     public static AsyncEntityProducer createText(
             final Callback<StreamChannel<CharBuffer>> callback,
             final ContentType contentType) {
-        return new AbstractCharAsyncEntityProducer(0, 4096, contentType) {
+        return new AbstractCharAsyncEntityProducer(4096, 2048, contentType) {
 
             @Override
             protected int availableData() {