cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject git commit: Adjust some of the defaults for 3.0 to values that make more sense today.
Date Wed, 26 Mar 2014 15:15:51 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 30ddf1c89 -> f4e85ce1f


Adjust some of the defaults for 3.0 to values that make more sense today.


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/f4e85ce1
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f4e85ce1
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f4e85ce1

Branch: refs/heads/master
Commit: f4e85ce1f779e95b8bad25450523e9c35b383bf9
Parents: 30ddf1c
Author: Daniel Kulp <dkulp@apache.org>
Authored: Wed Mar 26 11:12:40 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Mar 26 11:12:40 2014 -0400

----------------------------------------------------------------------
 .../org/apache/cxf/interceptor/AbstractLoggingInterceptor.java   | 2 +-
 core/src/main/java/org/apache/cxf/io/CachedOutputStream.java     | 2 +-
 core/src/test/java/org/apache/cxf/io/CachedStreamTestBase.java   | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f4e85ce1/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
b/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
index 90293ba..077e321 100644
--- a/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
+++ b/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
@@ -60,7 +60,7 @@ public abstract class AbstractLoggingInterceptor extends AbstractPhaseIntercepto
         BINARY_CONTENT_MEDIA_TYPES.add("image/gif");
     }
     
-    protected int limit = 100 * 1024;
+    protected int limit = 48 * 1024;
     protected long threshold = -1;
     protected PrintWriter writer;
     protected boolean prettyLogging;

http://git-wip-us.apache.org/repos/asf/cxf/blob/f4e85ce1/core/src/main/java/org/apache/cxf/io/CachedOutputStream.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/io/CachedOutputStream.java b/core/src/main/java/org/apache/cxf/io/CachedOutputStream.java
index 0e6aa97..2cca6af 100644
--- a/core/src/main/java/org/apache/cxf/io/CachedOutputStream.java
+++ b/core/src/main/java/org/apache/cxf/io/CachedOutputStream.java
@@ -605,7 +605,7 @@ public class CachedOutputStream extends OutputStream {
                 "-1");
             i = Integer.parseInt(s);
             if (i <= 0) {
-                i = 64 * 1024;
+                i = 128 * 1024;
             }
         }
         defaultThreshold = i;

http://git-wip-us.apache.org/repos/asf/cxf/blob/f4e85ce1/core/src/test/java/org/apache/cxf/io/CachedStreamTestBase.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/cxf/io/CachedStreamTestBase.java b/core/src/test/java/org/apache/cxf/io/CachedStreamTestBase.java
index ddd5fed..47e837f 100755
--- a/core/src/test/java/org/apache/cxf/io/CachedStreamTestBase.java
+++ b/core/src/test/java/org/apache/cxf/io/CachedStreamTestBase.java
@@ -70,8 +70,8 @@ public abstract class CachedStreamTestBase extends Assert {
     @Test
     public void testDeleteTmpFile2() throws IOException {
         Object cache = createCache();
-        //ensure output data size larger then 64k which will generate tmp file
-        String result = initTestData(65);
+        //ensure output data size larger then 128k which will generate tmp file
+        String result = initTestData(130);
         File tempFile = getTmpFile(result, cache);
         assertNotNull(tempFile);
         //assert tmp file is generated


Mime
View raw message