Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Expoential as a default reconnection policy#196

Merged
seba-aln merged 8 commits intomasterpubnub/python:masterfrom
feat/exponential-reconnect-by-defaultpubnub/python:feat/exponential-reconnect-by-defaultCopy head branch name to clipboard
Oct 1, 2024
Merged

Expoential as a default reconnection policy#196
seba-aln merged 8 commits intomasterpubnub/python:masterfrom
feat/exponential-reconnect-by-defaultpubnub/python:feat/exponential-reconnect-by-defaultCopy head branch name to clipboard

Conversation

@seba-aln
Copy link

No description provided.

@seba-aln seba-aln force-pushed the feat/exponential-reconnect-by-default branch from 42b26a3 to b9db664 Compare September 26, 2024 20:40
@seba-aln seba-aln marked this pull request as ready for review September 26, 2024 21:56
self._timer = None


class LinearDelay:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to provide custom delay other than 2?

Copy link
Author

Choose a reason for hiding this comment

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

No, not really. Should we add this option?

Copy link
Author

Choose a reason for hiding this comment

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

added in latest commit. thanks for pointing that out ;)

def _register_heartbeat_timer(self):
self.stop_heartbeat_timer()

if self._retry_limit_reached():
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know how it works in Python, but should announcing disconnected status being part of EE?

Copy link
Author

Choose a reason for hiding this comment

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

No. This one is for non-event engine subscribe (yeah, python has more than one subscribe)

@when('I subscribe with timetoken {timetoken}')
def step_impl(context: PNContext, timetoken: str): # noqa F811
@async_run_until_complete
async def step_impl(context: PNContext, timetoken: str): # noqa F811
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious, what it means? # noqa F811

Copy link
Author

Choose a reason for hiding this comment

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

it disables validation errors upon redeclaration of method. in this file there are more methods called step_impl, but they are the content of a @when decorator. so TL:DR - 'tis just for linter

@seba-aln seba-aln force-pushed the feat/exponential-reconnect-by-default branch 2 times, most recently from bcc837f to b6746db Compare October 1, 2024 11:11
@jguz-pubnub jguz-pubnub self-requested a review October 1, 2024 13:03
@seba-aln seba-aln merged commit 0d47e58 into master Oct 1, 2024
@seba-aln seba-aln deleted the feat/exponential-reconnect-by-default branch October 1, 2024 13:09
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.