]> source.dussan.org Git - vaadin-framework.git/commit
Properly deserialize push connection (#12235)
authorJohannes Dahlström <johannesd@vaadin.com>
Mon, 19 May 2014 13:28:09 +0000 (16:28 +0300)
committerArtur Signell <artur@vaadin.com>
Mon, 26 May 2014 13:18:00 +0000 (13:18 +0000)
commitdca9abccdddb5c1b39e9ae65b9cb53ad6fcab5cb
tree2ab384cecd52571388d7f2c4f113824093397f0b
parent17b5b7bf508586626da48e21b9c72694f03c7ff2
Properly deserialize push connection (#12235)

The UI.pushConnection field is transient no longer; instead PushConnection
implementations must take care of serialization internally. When a session
is serialized, the client should notice that push was disconnected and
try to reconnect. A deserialized PushConnection should be in a "disconnected"
state so the eventual client reconnection works correctly.

Change-Id: I38cfc5a5cdbd3643311f830f8d580458dcd85c56
server/src/com/vaadin/server/communication/AtmospherePushConnection.java
server/src/com/vaadin/server/communication/PushConnection.java
server/src/com/vaadin/ui/UI.java
server/tests/src/com/vaadin/server/communication/AtmospherePushConnectionTest.java [new file with mode: 0644]