Skip to content
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

Set heartbeat timer if needed, even if send_buffer is not empty #158

Merged
merged 1 commit into from Oct 22, 2014

Conversation

jcheng5
Copy link
Contributor

@jcheng5 jcheng5 commented Jun 6, 2014

Fixes #143

@brycekahle
Copy link
Contributor

It looks like this will fix it. It appears the heartbeat code is still suspect though. I would expect a heartbeat timer to ensure something gets sent every X seconds to keep the connection alive. The code appears to send a heartbeat without considering if other data is already flowing over the wire.

brycekahle added a commit that referenced this pull request Oct 22, 2014
Set heartbeat timer if needed, even if send_buffer is not empty
@brycekahle brycekahle merged commit b1d86b1 into sockjs:master Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Heartbeats not sent if send_buffer is not empty
2 participants