Skip to content

Enable setting max http header size via environment variable #176

Closed
@hoffmc

Description

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

2.125.0, 6.41

What version of the buildpack you are using?

1.6.40

If you were attempting to accomplish a task, what was it you were attempting to do?

I need to run a nodejs app on CF with node 8.15 or later while keeping max http header size above 8K.

In node 8.14, there was a breaking change decreasing max http header size from 80K to 8K. This broke our application. node 8.15 added a cli option to set the max http header size. However, setting custom commands for the buildpack is not documented and an enivronment variable, which would imo the best solution, doesn't exist for setting the max http header size option.

See for details:

This also affects node 6, 10, 11. The maximum header size for recent versions is 8K, but since the latest releases it's possible to configure it via the mentioned command line parameter.

What did you expect to happen?

Make the max http header size configurable in the buildpack via an environment variable.

What was the actual behavior?

Cannot use a node version higher than 8.13 due to the regression in 8.14 and following.

Can you provide a sample app?

For any nodejs app using node 8.14 or higher, requests will fail if header size exceeds 8K.

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • [X ] I have included steps for reproduction

Enable setting max http header size via environment variable

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions