简体   繁体   English

如何在uWSGI中配置允许的GET参数字符数?

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

I am running Django with nginx + uWSGI. 我用nginx + uWSGI运行Django。

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. 刚刚从本地dev迁移到登台服务器,我发现我们制作的特定GET请求有一个很长的查询字符串。 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. 试图调试,似乎uWSGI不接受基于长度的查询字符串 - 我可以传递短字符串并且它可以工作,在一定长度内我开始得到502个错误的网关错误。

I couldn't find anything about this on the uWSGI site or via google searching. 我在uWSGI网站上或通过谷歌搜索找不到任何相关信息。 Does anyone know what could be the issue? 有谁知道可能是什么问题?

Found the solution, it is easy enough. 找到解决方案,很容易。 Just need to increase uWSGI buffer-size, eg: 只需要增加uWSGI缓冲区大小,例如:

buffer-size = 32768 buffer-size = 32768

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM