Skip to content

Safe send #174

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

Open
wants to merge 2 commits into
base: pull-130
Choose a base branch
from
Open

Safe send #174

wants to merge 2 commits into from

Conversation

bdoctor
Copy link

@bdoctor bdoctor commented Mar 7, 2018

change to safely send data and ensure we don't blow out with too much data

goneafk and others added 2 commits May 28, 2017 03:07
Fixing typo in the two decorator examples from hanlder to handler
Copy link

@townie townie left a comment

Choose a reason for hiding this comment

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

Like the idea, could use a little error handling to make sure it doesnt block for ever. (and a test)

@@ -176,15 +176,15 @@ Besides specifying `DEFAULT_REPLY` in `slackbot_settings.py`, you can also decor

```python
@default_reply
def my_default_hanlder(messsage):
def my_default_handler(messsage):
Copy link

Choose a reason for hiding this comment

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

merge conflict since it is already fixed.

"""Safely send data to the websocket and retry on failure"""

data = json.dumps(data)
while True:
Copy link

Choose a reason for hiding this comment

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

Not sure about this while True, maybe consider making this a time based thing with exponential back off.

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