Skip to content

Commit

Permalink
do not fail on HTTP requests with numerous/long cookies (#1076)
Browse files Browse the repository at this point in the history
In case of numerous/long cookies and/or long query string, the HTTP header may exceed default 4k.
When it occurs, uwsgi rejects those rejects with error "invalid request block size" and nginx returns HTTP 502.
Allowing 8k is a safe value that still allows weird long cookies set on .univ-xxx.fr
  • Loading branch information
prigaux authored Mar 14, 2024
1 parent 83fc7dc commit f749bd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pod_uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ socket = /home/pod/django_projects/podv3/podv3.sock
chmod-socket = 666
# clear environment on exit
vacuum = true


# In case of numerous/long cookies and/or long query string, the HTTP header may exceed default 4k.
# When it occurs, uwsgi rejects those rejects with error "invalid request block size" and nginx returns HTTP 502.
# Allowing 8k is a safe value that still allows weird long cookies set on .univ-xxx.fr
buffer-size = 8192

0 comments on commit f749bd6

Please sign in to comment.