summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-30 11:50:04 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-30 11:50:04 +0000
commite1eaf4dfc6c8d53b6543f628f4d35448643bfd11 (patch)
treeaa3160f8b94b18b1a79bb3d58b8bbbe7b6dd0eb9
parent0c026b608fd80596e4b64df7feb1b0f60432437e (diff)
downloadinfrastructure-e1eaf4dfc6c8d53b6543f628f4d35448643bfd11.tar.gz
openid_provider: Increase UWSGI buffer-size
Authenticating with wiki.baserock.org was giving a 500 error. The Cherokee error_log showed: invalid request block size: 4104 (max 4096)...skip It turns out uWSGI's default buffer size is too small to be useful, as https://uwsgi-docs.readthedocs.org/en/latest/ThingsToKnow.html explains. Thanks to: https://stackoverflow.com/questions/15878176/uwsgi-invalid-request-block-size/26941287#26941287
-rw-r--r--baserock_openid_provider/uwsgi.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/baserock_openid_provider/uwsgi.ini b/baserock_openid_provider/uwsgi.ini
index c359bdb7..0849096d 100644
--- a/baserock_openid_provider/uwsgi.ini
+++ b/baserock_openid_provider/uwsgi.ini
@@ -18,3 +18,5 @@ wsgi = wsgi
# These numbers are pulled completely out of my arse. Testing should
# be done to find good values.
processes = 1
+
+buffer-size = 32768