diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-04-19 15:52:33 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-04-19 15:52:33 +0200 |
commit | 8d633126656aba00606700a169880fc4d41fa019 (patch) | |
tree | 64610bc7d9910c68fb260b6fef51336c67f238d8 /jrt | |
parent | 35da18f3477ba4e2efe5e58e0fcbede5c7c56990 (diff) |
Start with initial buffer of 4k
Diffstat (limited to 'jrt')
-rw-r--r-- | jrt/src/com/yahoo/jrt/Connection.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jrt/src/com/yahoo/jrt/Connection.java b/jrt/src/com/yahoo/jrt/Connection.java index 5a4478cf91e..7393d30fc81 100644 --- a/jrt/src/com/yahoo/jrt/Connection.java +++ b/jrt/src/com/yahoo/jrt/Connection.java @@ -32,8 +32,8 @@ class Connection extends Target { private int state = INITIAL; private final Queue queue = new Queue(); private final Queue myQueue = new Queue(); - private final Buffer input = new Buffer(READ_SIZE * 2); - private final Buffer output = new Buffer(WRITE_SIZE * 2); + private final Buffer input = new Buffer(0x1000); // Start off with small buffer. + private final Buffer output = new Buffer(0x1000); // Start off with small buffer. private int maxInputSize = 64*1024; private int maxOutputSize = 64*1024; private final boolean tcpNoDelay; |