简体   繁体   中英

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

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?

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

buffer-size = 32768

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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