You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the vaadin gradle starter skeleton to have a minimal reproducing example and changed AppShell.java to add a push annotation
/**
* Use the @PWA annotation make the application installable on phones, tablets
* and some desktop browsers.
*/
@PWA(name = "Project Base for Vaadin", shortName = "Project Base")
@Theme("my-theme")
@Push(transport = Transport.WEBSOCKET, value = PushMode.AUTOMATIC)
public class AppShell implements AppShellConfigurator {
}
After starting using jettyRun. I open the app in a browser in a virtual machine (I used VirtualBox and libvirt).
I type in something and verify I get a result. I change the textbox content.
Then I virtually pull the cable.
In libvirt this can be done as follows, start virsh. Find out machine name (domain <dom>) using list, find out interface () using domiflist <dom>. 'Pull cable' using domif-setlink <dom> <iface> down.
It is not sufficient to use the developer tools. That does not interrupt the websocket connection.
Press 'Say hello' again to send something and wait some time (best reproduced when browser print something like
'Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent). - wasClean: false')
Then reconnect the network (domif-setlink <dom> <iface> up).
And observe that nothing is send any more.
Expected behavior
The connection is reestablished and interaction is possible again.
I do not know if the last update should still be pushed or if resynchronization is better.
Description of the bug
I used the vaadin gradle starter skeleton to have a minimal reproducing example and changed AppShell.java to add a push annotation
After starting using
jettyRun
. I open the app in a browser in a virtual machine (I used VirtualBox and libvirt).I type in something and verify I get a result. I change the textbox content.
Then I virtually pull the cable.
In libvirt this can be done as follows, start
virsh
. Find out machine name (domain<dom>
) usinglist
, find out interface () usingdomiflist <dom>
. 'Pull cable' usingdomif-setlink <dom> <iface> down
.It is not sufficient to use the developer tools. That does not interrupt the websocket connection.
Press 'Say hello' again to send something and wait some time (best reproduced when browser print something like
'Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent). - wasClean: false')
Then reconnect the network (
domif-setlink <dom> <iface> up
).And observe that nothing is send any more.
Expected behavior
The connection is reestablished and interaction is possible again.
I do not know if the last update should still be pushed or if resynchronization is better.
Minimal reproducible example
I downloaded https://github.com/vaadin/base-starter-gradle and applied the change above. I copied the code when vaadin version was 2.4.10
Versions
The text was updated successfully, but these errors were encountered: