summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/server/communication/PushHandler.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/server/src/com/vaadin/server/communication/PushHandler.java b/server/src/com/vaadin/server/communication/PushHandler.java
index 483c0abc44..0b4fe28b77 100644
--- a/server/src/com/vaadin/server/communication/PushHandler.java
+++ b/server/src/com/vaadin/server/communication/PushHandler.java
@@ -81,18 +81,12 @@ public class PushHandler {
resource.getResponse().setContentType("text/plain; charset=UTF-8");
VaadinSession session = ui.getSession();
- if (resource.transport() == TRANSPORT.STREAMING
- || resource.transport() == TRANSPORT.LONG_POLLING) {
- // Must ensure that the streaming/long-polling response contains
+ if (resource.transport() == TRANSPORT.STREAMING) {
+ // Must ensure that the streaming response contains
// "Connection: close", otherwise iOS 6 will wait for the
// response to this request before sending another request to
// the same server (as it will apparently try to reuse the same
- // connection).
-
- // Other browsers might also try to re-use the same
- // connection for fetching static files after refreshing, which
- // will cause a failure in loading vaadinPush.js or
- // vaadinBootstrap.js
+ // connection)
resource.getResponse().addHeader("Connection", "close");
}