aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-06-06 08:09:27 (EDT)
committerThomas Becker2013-06-06 08:09:27 (EDT)
commit82b73c065f15414daad553c0c883626d6302202b (patch)
tree8b2c2278ac71744c4fde33a67817de283bd84294
parentd3b96328f9e3d30e7c4318fad2b949cad2425675 (diff)
downloadorg.eclipse.jetty.project-82b73c065f15414daad553c0c883626d6302202b.zip
org.eclipse.jetty.project-82b73c065f15414daad553c0c883626d6302202b.tar.gz
org.eclipse.jetty.project-82b73c065f15414daad553c0c883626d6302202b.tar.bz2
409953 return buffer.slice() instead of buffer.asReadOnlyBuffer() in ResourceCache to avoid using inefficent path in BufferUtil.writeTo
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java
index 9cd68a4..c41ee2b 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceCache.java
@@ -486,7 +486,7 @@ public class ResourceCache
}
if (buffer==null)
return null;
- return buffer.asReadOnlyBuffer();
+ return buffer.slice();
}