gotosocial/internal/middleware
kim d56a8d095e
[performance] simpler throttling logic (#2407)
* reduce complexity of throttling logic to use 1 queue and an atomic int

* use atomic add instead of CAS, add throttling test
2023-12-16 12:53:42 +01:00
..
cachecontrol.go [bugfix] Set Vary header correctly on cache-control (#1988) 2023-07-13 21:27:25 +02:00
contentsecuritypolicy.go [feature/bugfix] Probe S3 storage for CSP uri, add config flag for extra URIs (#2134) 2023-08-20 13:35:55 +02:00
contentsecuritypolicy_test.go [feature] Add rate limit exceptions option, use ISO8601 for rate limit reset (#2151) 2023-08-23 14:32:27 +02:00
cors.go [chore] Replace pinafore with semaphore (#1801) 2023-05-21 22:40:43 +02:00
extraheaders.go [feature/bugfix] Probe S3 storage for CSP uri, add config flag for extra URIs (#2134) 2023-08-20 13:35:55 +02:00
gzip.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
logger.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
ratelimit.go [performance] simpler throttling logic (#2407) 2023-12-16 12:53:42 +01:00
ratelimit_test.go [feature] Add rate limit exceptions option, use ISO8601 for rate limit reset (#2151) 2023-08-23 14:32:27 +02:00
requestid.go [chore] ensure worker contexts have request ID (#2120) 2023-08-15 17:01:01 +01:00
session.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
session_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
signaturecheck.go [performance] retry db queries on busy errors (#2025) 2023-07-25 10:34:05 +02:00
throttling.go [performance] simpler throttling logic (#2407) 2023-12-16 12:53:42 +01:00
throttling_test.go [performance] simpler throttling logic (#2407) 2023-12-16 12:53:42 +01:00
tokencheck.go [performance] remove last of relational queries to instead rely on caches (#2091) 2023-08-10 15:08:41 +01:00
useragent.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00