aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-06-06 08:09:27 (EDT)
committerJoakim Erdfelt2013-06-17 12:19:02 (EDT)
commit724e0c44d45680716a4a8a05ed270d7eba66fbe0 (patch)
tree34f1e9b46c36c8661a2ff4b4542c26e01ab4c489
parent928275271da25eb3a8c7470b427542f3003ce79f (diff)
downloadorg.eclipse.jetty.project-724e0c44d45680716a4a8a05ed270d7eba66fbe0.zip
org.eclipse.jetty.project-724e0c44d45680716a4a8a05ed270d7eba66fbe0.tar.gz
org.eclipse.jetty.project-724e0c44d45680716a4a8a05ed270d7eba66fbe0.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();
}