Sha256: 69477d1ca2b0e23195dcae9449b0e9878d2100c506e359ffae0bf3c07a90359c

Contents?: true

Size: 597 Bytes

Versions: 20

Compression:

Stored size: 597 Bytes

Contents

# 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 allow accept larger 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'"
```

Version data entries

20 entries across 19 versions & 3 rubygems

Version Path
puma-5.5.0-java docs/compile_options.md
puma-5.5.0 docs/compile_options.md
piesync-puma-5.4.0.1 docs/compile_options.md
puma-5.4.0-java docs/compile_options.md
puma-5.4.0 docs/compile_options.md
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/puma-5.2.2/docs/compile_options.md
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/puma-5.2.1/docs/compile_options.md
puma-5.3.2-java docs/compile_options.md
puma-5.3.2 docs/compile_options.md
puma-5.3.1-java docs/compile_options.md
puma-5.3.1 docs/compile_options.md
puma-5.3.0-java docs/compile_options.md
puma-5.3.0 docs/compile_options.md
puma-5.2.2-java docs/compile_options.md
puma-5.2.2 docs/compile_options.md
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/puma-5.2.1/docs/compile_options.md
puma-5.2.1-java docs/compile_options.md
puma-5.2.1 docs/compile_options.md
puma-5.2.0-java docs/compile_options.md
puma-5.2.0 docs/compile_options.md