How can I configure allowed number of GET parameter characters in uWSGI?

被刻印的时光 ゝ 提交于 2019-12-22 06:28:40

问题


I am running Django with nginx + uWSGI.

Having just moved from local dev to a staging server, I have discovered that a particular GET request we make has a long query string. Trying to debug, it seems that uWSGI is not accepting this query string based on length - I can pass short strings and it works, over a certain length I start getting 502 bad gateway errors.

I couldn't find anything about this on the uWSGI site or via google searching. Does anyone know what could be the issue?


回答1:


Found the solution, it is easy enough. Just need to increase uWSGI buffer-size, eg:

buffer-size = 32768



来源:https://stackoverflow.com/questions/12552885/how-can-i-configure-allowed-number-of-get-parameter-characters-in-uwsgi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!