-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PopupButton + long polling push + assertions enabled = browser doing tons of requests #30
Comments
I tried to reproduce this but didn't see that kind of behaviour. |
@lorenzobenvenuti What do the requests contain? Add ?debug and you should see, in the debug window, what RPCs are being sent to the server |
Hi Artur. When the issue described above is occurring (that is, enabling the JVM assertions and just booting the attached UI) the debug console it's pretty much impossibile to use since it keeps updating itself with new messages. The only way to read the message and scroll the window is stopping the AS: in this case this is what I found on the message log. As you can see it is somehow "periodic", as if the client is looping through the same request/response cycle.
If I expand the "Reponse" entries of the network tab I can see just an empty "shared state" label. Finally, here you have the requests captured using the Chrome network monitor. Request headers:
Response headers:
Response:
Please let me know if you need something else. Thank you, lorenzo |
Any update on this issue? I just discovered it too after enabling assertions. Sending these tons of request slows down the responsiveness of the browser. After disabling "-ea" parameter everything is fine. Using: |
Hi,
we are investigating some random push-related problems in our application; we tried to enable the JVM assertions to check if they could be related to the Vaadin session locking mechanism, but in this way we started seeing that the client performs hundreds of requests to host/app/PUSH/. After a bit of further investigation we found out it happens only if we add a PopupButton to the UI; I actually was able to replicate the issue in a simple UI:
We tried with versions 2.3.0 and 2.5.0. The unwanted requests come out only if we enable push and use the long polling transport mode.
While we don't mean to use assertions in production, we fear this problem may hide some unwanted behaviour even with assertions disabled.
Thank you,
lorenzo
The text was updated successfully, but these errors were encountered: