Skip to content
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

Automatically gban CAS banned users on sight #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nyancrimew
Copy link
Contributor

No description provided.

@RealAkito
Copy link

Very nais

@nyancrimew
Copy link
Contributor Author

As Paul pointed out on Telegram there are some issues with the way we currently run the request. It runs synchronously in the user logging logic without any proper request error handling. If CAS goes down (or we are blacklisted) we go down too.

@RealAkito
Copy link

As Paul pointed out on Telegram there are some issues with the way we currently run the request. It runs synchronously in the user logging logic without any proper request error handling. If CAS goes down (or we are blacklisted) we go down too.

Why don't we just do timeout then

@nyancrimew
Copy link
Contributor Author

I feel like we should actually run this check async, there is no need to immediately CAS ban in hot path. Timeout is a good idea too and just generally allow things to go wrong during the request.

I don't have time to make these changes right now, so I'm open for specific proposals.

@SphericalKat
Copy link
Contributor

@deletescape I'll implement the background stuff while translating to Go, this sort of async behaviour is really easy to implement with goroutines

@AyraHikari
Copy link
Contributor

As Paul pointed out on Telegram there are some issues with the way we currently run the request. It runs synchronously in the user logging logic without any proper request error handling. If CAS goes down (or we are blacklisted) we go down too.

Why not using threading?
When it request time out or 500 internal error or whatever it is, then just pass it.

skittles9823 pushed a commit that referenced this pull request Aug 14, 2019
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.

None yet

4 participants