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 typo #90

Merged
merged 1 commit into from
Feb 16, 2016
Merged

Fix typo #90

merged 1 commit into from
Feb 16, 2016

Conversation

josegonzalez
Copy link
Contributor

No description provided.

awestendorf added a commit that referenced this pull request Feb 16, 2016
@awestendorf awestendorf merged commit 268136f into agoragames:master Feb 16, 2016
@josegonzalez josegonzalez deleted the patch-1 branch February 16, 2016 21:54
@@ -331,7 +331,7 @@ The constructor takes many keyword arguments that will affect its behavior.
* ``vhost`` Default "/".
* ``connect_timeout`` Default 5 seconds. Time before socket connection fails.
* ``sock_opts`` Default None. Recommend at least ``{(socket.IPPROTO_TCP, socket.TCP_NODELAY) : 1}``
* ``hearbeat`` Default None (disabled). If 0, broker assigned. If >0, negotiated with broker.
* ``heartbeat`` Default None (disabled). If 0, broker assigned. If >0, negotiated with broker.

Choose a reason for hiding this comment

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

@awestendorf: I just noticed that the description doesn't match the implementation. The implementation appears to be that if user passed heartbeat=None, then the heartbeat value is broker-assigned; if user passed heartbeat=0, then heartbeats would be disabled. The description is the reverse of what actually happens.

        if self.connection._heartbeat is None:
            self.connection._heartbeat = method_frame.args.read_short()

I filed this as issue #91

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.

3 participants