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

Fix comet connections not starting a recv after the connect req closes #181

Merged
merged 1 commit into from
Dec 14, 2015

Conversation

SimonWoolf
Copy link
Member

Fixes #180. Cause was just that there was no self.recv() in connectRequest.on('complete'). I did find one lurking in onConnect, though, which AFAICS doesn't make sense -- when onConnect fires, the /connect stream is still good for another 59 or so seconds. So I'm guessing it just got put in the wrong place.

(a bit ashamed that I'd never noticed before that comet connections had never worked for more than a minute. possible future enhancement: a longrunning.test.js suite that tests that everything works as it should after a few /recv cycles, that websocket connections don't die after a few minutes, etc. perhaps run in a separate ci job, or maybe by ci-browsers-all in parallel with the saucelabs tests)

@paddybyers
Copy link
Member

a bit ashamed that I'd never noticed before that comet connections had never worked for more than a minute

That was only a recent change ....

paddybyers added a commit that referenced this pull request Dec 14, 2015
Fix comet connections not starting a recv after the connect req closes
@paddybyers paddybyers merged commit 1c63f97 into master Dec 14, 2015
@SimonWoolf
Copy link
Member Author

I tried it with a pretty old ably-js, same behaviour. (or d'you mean it was a recent realtime change?)

@paddybyers
Copy link
Member

thanks

@paddybyers
Copy link
Member

d'you mean it was a recent realtime change?

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants