heartbeat gets blocked if the request takes long time

Hi Guys,

It seems to me that the UI gets closed whenever a server request take too long to be completed.
Hearbeat requests seems to be put on hold until the Main Thread request release the session. Howevever, while releasing the session Main thread request also cleans up and close UIs which are e.g idle.(lastheartbeattimestamp) .
Hearbeat requests are processed after the main Thread request is completed. but its too late since the UI is already closed by main Thread.

Any suggestions on that?

Hi, this should be fixed in 8.2.0 via this PR https://github.com/vaadin/framework/issues/9663