You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run a Matrix server. We had a couple days of down time last week, during which we were getting absolutely spammed by sync requests from a single user. Over 2 million in 24 hours. After some sleuthing I figured out it was an instance of this bot sending the requests.
Steps to Reproduce
Run the bot against a matrix server that returns error when sync is called.
Expected Functionality
Implement some kind of back off if sync fails to multiple times in a row.
Experienced Functionality
Because our Matrix server was down, but our Nginx server that sits in front of it was still up, all requests immediately returned HTTP 502. So, every call to sync the bot made immediately returned an error, and the bot immediately tried the request again.
I would be very happy to review a PR for this, but wont have time to write one myself. Sorry this project has got a little quiet recently, things are very busy for all of us.
Description
I run a Matrix server. We had a couple days of down time last week, during which we were getting absolutely spammed by sync requests from a single user. Over 2 million in 24 hours. After some sleuthing I figured out it was an instance of this bot sending the requests.
Steps to Reproduce
Run the bot against a matrix server that returns error when sync is called.
Expected Functionality
Implement some kind of back off if sync fails to multiple times in a row.
Experienced Functionality
Because our Matrix server was down, but our Nginx server that sits in front of it was still up, all requests immediately returned HTTP 502. So, every call to sync the bot made immediately returned an error, and the bot immediately tried the request again.
opsdroid/opsdroid/connector/matrix/connector.py
Lines 328 to 338 in e2ffb0c
This loop should implement some kind of back off when multiple error occur in a row to prevent this.
The text was updated successfully, but these errors were encountered: