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

uWSGI のバッファサイズを拡大する #61

Open
tichi73 opened this issue Nov 5, 2024 · 1 comment · May be fixed by #66
Open

uWSGI のバッファサイズを拡大する #61

tichi73 opened this issue Nov 5, 2024 · 1 comment · May be fixed by #66
Assignees

Comments

@tichi73
Copy link
Contributor

tichi73 commented Nov 5, 2024

uWSGIのデフォルトのバッファサイズ(4K)だと足りないというエラーが出る場合がある。

$ grep 'invalid request block size' /var/log/kompira/*
/var/log/kompira/kompira.log:invalid request block size: 4176 (max 4096)...skip
/var/log/kompira/kompira.log:invalid request block size: 4176 (max 4096)...skip
/var/log/kompira/kompira.log:invalid request block size: 4265 (max 4096)...skip
/var/log/kompira/kompira.log:invalid request block size: 4121 (max 4096)...skip
/var/log/kompira/kompira.log:invalid request block size: 4295 (max 4096)...skip
/var/log/kompira/kompira.log:invalid request block size: 4145 (max 4096)...skip
/var/log/kompira/kompira.log:invalid request block size: 4097 (max 4096)...skip
/var/log/kompira/kompira.log:invalid request block size: 4233 (max 4096)...skip
/var/log/kompira/kompira.log:invalid request block size: 4190 (max 4096)...skip
@tichi73
Copy link
Contributor Author

tichi73 commented Nov 5, 2024

簡単な手法としては、uwsgi に環境変数 UWSGI_BUFFER_SIZE で十分なバッファサイズを指定する。

@fixpoint-hasan fixpoint-hasan linked a pull request Dec 4, 2024 that will close this issue
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 a pull request may close this issue.

2 participants