1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/docs/compile_options.md
Jacob Herrington 21e9a4a65b
Clean up and format markdown documentation (#2714)
* Revise and format architecture docs [ci skip]

* Fix typo and format compile options doc [ci skip]

* Revise and format deployment doc [ci skip]

* Revise and format plugins doc [ci skip]

* Fix mechanical typos [ci skip]

* Revise restart.md [ci skip]

* Revise signals.md [ci skip]

* Revise stats.md [ci skip]

* Revise and format systemd.md [ci skip]
2021-09-25 17:18:28 -06:00

591 B

Compile Options

There are some cflags provided to change Puma's default configuration for its C extension.

Query String, PUMA_QUERY_STRING_MAX_LENGTH

By default, the max length of QUERY_STRING is 1024 * 10. But you may want to adjust it to accept longer queries in GET requests.

For manual install, pass the PUMA_QUERY_STRING_MAX_LENGTH option like this:

gem install puma -- --with-cflags="-D PUMA_QUERY_STRING_MAX_LENGTH=64000"

For Bundler, use its configuration system:

bundle config build.puma "--with-cflags='-D PUMA_QUERY_STRING_MAX_LENGTH=64000'"