From 1c9bfd90174c02e98186c830582bcea5048fbfda Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Sat, 11 Jul 2020 00:08:14 +0300 Subject: [PATCH] fix(relay): Fix relay cannot authenticate w/ Sentry (#576) Fixes #486. I finally figured out what the issue was: a missing `post-buffering` option to let Relay finish it's POST request for auth. This PR supersedes #543. --- sentry/sentry.conf.example.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sentry/sentry.conf.example.py b/sentry/sentry.conf.example.py index 7116f9c..3721840 100644 --- a/sentry/sentry.conf.example.py +++ b/sentry/sentry.conf.example.py @@ -185,13 +185,13 @@ SENTRY_DIGESTS = "sentry.digests.backends.redis.RedisBackend" SENTRY_WEB_HOST = "0.0.0.0" SENTRY_WEB_PORT = 9000 SENTRY_WEB_OPTIONS = { - # These ase for proper HTTP/1.1 support from uWSGI - # Without these it doesn't do keep-alives causing - # issues with Relay's direct requests. "http-keepalive": True, + "so-keepalive": True, + "http-auto-chunked": True, "http-chunked-input": True, # the number of web workers 'workers': 3, + 'threads': 4, # Turn off memory reporting "memory-report": False, # Some stuff so uwsgi will cycle workers sensibly @@ -203,6 +203,8 @@ SENTRY_WEB_OPTIONS = { 'thunder-lock': True, 'log-x-forwarded-for': False, 'buffer-size': 32768, + # Relay cannot authenticate without the following + 'post-buffering': 32768, 'limit-post': 209715200, 'disable-logging': True, 'reload-on-rss': 600,