Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def main():
password="<string>", # depends on how Memphis deployed - default is connection token-based authentication
port=<port>, # defaults to 6666
reconnect=True, # defaults to True
max_reconnect=10, # defaults to 10
max_reconnect=10, # defaults to -1 which means reconnect indefinitely
reconnect_interval_ms=1500, # defaults to 1500
timeout_ms=1500, # defaults to 1500
# for TLS connection:
Expand Down
4 changes: 2 additions & 2 deletions memphis/memphis.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def connect(
password: str = "",
port: int = 6666,
reconnect: bool = True,
max_reconnect: int = 10,
max_reconnect: int = -1,
reconnect_interval_ms: int = 1500,
timeout_ms: int = 2000,
cert_file: str = "",
Expand All @@ -162,7 +162,7 @@ async def connect(
password (str): depends on how Memphis deployed - default is connection token-based authentication.
port (int, optional): port. Defaults to 6666.
reconnect (bool, optional): whether to do reconnect while connection is lost. Defaults to True.
max_reconnect (int, optional): The reconnect attempt. Defaults to 10.
max_reconnect (int, optional): The maximum number of reconnection attempts. The default value is -1 which means reconnect indefinitely.
reconnect_interval_ms (int, optional): Interval in milliseconds between reconnect attempts. Defaults to 1500.
timeout_ms (int, optional): connection timeout in milliseconds. Defaults to 15000.
key_file (string): path to tls key file.
Expand Down