Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2013-08-30 00:37:43 -0400
committerGreg Wilkins2013-08-30 00:37:43 -0400
commit47c679dabb1ad3f77e9944e616aa61002474c83f (patch)
treeb9d323fc903a718068bc5f671bff7618faad6f8c /examples
parent9bf83d427b6db72c62454b7e15cefbc6b637d961 (diff)
downloadorg.eclipse.jetty.project-47c679dabb1ad3f77e9944e616aa61002474c83f.tar.gz
org.eclipse.jetty.project-47c679dabb1ad3f77e9944e616aa61002474c83f.tar.xz
org.eclipse.jetty.project-47c679dabb1ad3f77e9944e616aa61002474c83f.zip
416102 - Clean up of async sendContent process
Diffstat (limited to 'examples')
-rw-r--r--examples/embedded/src/main/java/org/eclipse/jetty/embedded/FastFileServer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FastFileServer.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FastFileServer.java
index dd819acdf7..bd97d2878f 100644
--- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FastFileServer.java
+++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/FastFileServer.java
@@ -155,6 +155,7 @@ public class FastFileServer
// send "medium" files from an input stream
if (file.length()<MEDIUM)
{
+ // the file channel is closed by the async send
((HttpOutput)response.getOutputStream()).sendContent(FileChannel.open(file.toPath(),StandardOpenOption.READ),completionCB);
return;
}

Back to the top