]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove out of order flush() (#12283)
authorArtur Signell <artur@vaadin.com>
Fri, 18 Oct 2013 11:08:50 +0000 (14:08 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 24 Oct 2013 05:33:26 +0000 (05:33 +0000)
Writer.flush() is specified as:
"Flushes the stream. If the stream has saved any characters from the various
write() methods in a buffer, write them immediately to their intended
destination. Then, if that destination is another character or byte stream,
flush it. Thus one flush() invocation will flush all the buffers in a chain
of Writers and OutputStreams."

Change-Id: Iecafdbb13a7a26a48300d2967c25c705f5bf1e38

server/src/com/vaadin/server/VaadinServlet.java

index c16be33de2312c5bfae1c53a0c0ec5115338df1c..7c0f9599f3320a79f2e8c0bcfdf5b4c287b3e422 100644 (file)
@@ -427,8 +427,6 @@ public class VaadinServlet extends HttpServlet implements Constants {
         outWriter.print(output);
         outWriter.flush();
         outWriter.close();
-        out.flush();
-
     }
 
     /**