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
For example if xhr_streaming is used and there's a frame in the buffer then buffer is written to the connection right away, but heartbeats are not sent afterwards as tryFlush does not create the hearbeat timer.
The text was updated successfully, but these errors were encountered:
I spent most of today trying to figure out a bug we are seeing in @rstudio/shiny-server and it was down to this exact issue. I came here to file an issue on that same line of code.
I'm not sure it's a bug, but anyways I'll ask here as it might be a problem.
From the code it seems that hearbeat timer is not created if send_buffer is not empty:
https://github.com/sockjs/sockjs-node/blob/master/src/transport.coffee#L155
For example if xhr_streaming is used and there's a frame in the buffer then buffer is written to the connection right away, but heartbeats are not sent afterwards as tryFlush does not create the hearbeat timer.
The text was updated successfully, but these errors were encountered: