Skip to content

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)

```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