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

DDP Connection Idle Disconnect #80

Closed
mayvn10 opened this issue Apr 18, 2016 · 3 comments
Closed

DDP Connection Idle Disconnect #80

mayvn10 opened this issue Apr 18, 2016 · 3 comments
Labels

Comments

@mayvn10
Copy link
Contributor

mayvn10 commented Apr 18, 2016

Everything connects fine after viewing #79 until what seems like a Connection Idle Disconnect.

Currently using it in a node project hosted on DO in connection with a meteor app hosted on Galaxy but it seems like if the connection is idle and there are no processes happening, it will disconnect.

We have reconnect measures in place but it continues to disconnect anyway. Are there more ways to keep a sustained connection?

@vsivsi
Copy link
Member

vsivsi commented Apr 18, 2016

Do you know which side is disconnecting? Is it the Galaxy / Server-side that is initiating the disconnect? If so, that's a Galaxy question. This package generates events on disconnect that you can hook to automatically reconnect. That's why I recommended looking at the node.js worker sample code, as it contains some logic along those lines. https://github.com/vsivsi/meteor-job-collection-playground-worker

@vsivsi
Copy link
Member

vsivsi commented Apr 18, 2016

Just noticed your comment on the other issue that you already looked at the playground worker...

@mayvn10
Copy link
Contributor Author

mayvn10 commented Apr 19, 2016

@vsivsi After careful monitoring, it looks like this isn't a node-ddp-client issue, but a Meteor Job Collection Issue. I'll file a question there and explain it further but basically I added an undefined catch that was needed (relative to our project) and the connection was sustained, however, after X amount of runs the job continues to stay running. Please check the meteor job collection package issue boards.

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

No branches or pull requests

2 participants