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

Reconnect #5

Merged
merged 8 commits into from
Dec 5, 2013
Merged

Reconnect #5

merged 8 commits into from
Dec 5, 2013

Conversation

rgarcia
Copy link
Contributor

@rgarcia rgarcia commented Dec 5, 2013

auto reconnect on dropped connections

@ghost ghost assigned azylman Dec 5, 2013
@socket.on "data", @receive.bind @
@reconnecter.on 'reconnect', ->
console.log "GEARMAN #{@uid}: attempting reconnect!" if @debug
@connected = false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it might be better to set connected to false in a listener for disconnect method of reconnecter? Otherwise I'd be worried about trying to send commands when we're disconnected but haven't yet started to reconnect.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@azylman
Copy link
Contributor

azylman commented Dec 5, 2013

lgtm. want to publish this after you merge this in? it's currently unpublished

rgarcia added a commit that referenced this pull request Dec 5, 2013
@rgarcia rgarcia merged commit eb26de3 into master Dec 5, 2013
@rgarcia rgarcia deleted the reconnect branch December 5, 2013 23:59
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.

None yet

2 participants