Sha256: ba2246a38178d9b440d32b92c946c002a08cde11901e87e9db98af25e2c597b3

Contents?: true

Size: 1.49 KB

Versions: 33

Compression:

Stored size: 1.49 KB

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 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'"
```

## Request Path, `PUMA_REQUEST_PATH_MAX_LENGTH`

By default, the max length of `REQUEST_PATH` is `8192`. But you may want to
adjust it to accept longer paths in requests.

For manual install, pass the `PUMA_REQUEST_PATH_MAX_LENGTH` option like this:

```
gem install puma -- --with-cflags="-D PUMA_REQUEST_PATH_MAX_LENGTH=64000"
```

For Bundler, use its configuration system:

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

## Request URI, `PUMA_REQUEST_URI_MAX_LENGTH`

By default, the max length of `REQUEST_URI` is `1024 * 12`. But you may want to
adjust it to accept longer URIs in requests.

For manual install, pass the `PUMA_REQUEST_URI_MAX_LENGTH` option like this:

```
gem install puma -- --with-cflags="-D PUMA_REQUEST_URI_MAX_LENGTH=64000"
```

For Bundler, use its configuration system:

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

Version data entries

33 entries across 33 versions & 3 rubygems

Version Path
puma-6.5.0-java docs/compile_options.md
puma-6.5.0 docs/compile_options.md
jun-puma-1.0.1-java docs/compile_options.md
jun-puma-1.0.0-java docs/compile_options.md
puma-6.4.3-java docs/compile_options.md
puma-6.4.3 docs/compile_options.md
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/puma-6.4.2/docs/compile_options.md
puma-6.4.2-java docs/compile_options.md
puma-6.4.2 docs/compile_options.md
puma-6.4.1-java docs/compile_options.md
puma-6.4.1 docs/compile_options.md
puma-6.4.0-java docs/compile_options.md
puma-6.4.0 docs/compile_options.md
puma-6.3.1-java docs/compile_options.md
puma-6.3.1 docs/compile_options.md
puma-6.3.0-java docs/compile_options.md
puma-6.3.0 docs/compile_options.md
puma-6.2.2-java docs/compile_options.md
puma-6.2.2 docs/compile_options.md
puma-6.2.1-java docs/compile_options.md