Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
pika
Commits
b2f9dea1a755
Commit
b2f9dea1a755
authored
7 years ago
by
Luke Bakken
Browse files
Options
Downloads
Patches
Plain Diff
PR review
parent
a7f1960d3018
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pika/heartbeat.py
+6
-4
6 additions, 4 deletions
pika/heartbeat.py
with
6 additions
and
4 deletions
pika/heartbeat.py
+
6
−
4
View file @
b2f9dea1
...
@@ -7,8 +7,10 @@
...
@@ -7,8 +7,10 @@
class
HeartbeatChecker
(
object
):
class
HeartbeatChecker
(
object
):
"""
Sends heartbeats to the broker and checks to make sure that the broker
'
s
"""
Sends heartbeats to the broker twice during the provided interval
heartbeat is received before the expected timeout expires.
and checks at a different interval to make sure that the broker
'
s
heartbeat is received as expected. See the parameter list for more
details.
"""
"""
_CONNECTION_FORCED
=
320
_CONNECTION_FORCED
=
320
...
@@ -17,8 +19,8 @@
...
@@ -17,8 +19,8 @@
def
__init__
(
self
,
connection
,
interval
):
def
__init__
(
self
,
connection
,
interval
):
"""
Create a heartbeat on the connection that sends two heartbeat frames
"""
Create a heartbeat on the connection that sends two heartbeat frames
within the specified
timeout window
. Also checks to ensure heartbeats
within the specified
interval
. Also checks to ensure heartbeats
are
are
received from the broker.
received from the broker
at a different interval explained below
.
:param pika.connection.Connection: Connection object
:param pika.connection.Connection: Connection object
:param int interval: Heartbeat check interval. Note: heartbeats will
:param int interval: Heartbeat check interval. Note: heartbeats will
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment