Increasing HTTP Header Size

Hi,

I am getting the following error: org.jboss.netty.handler.codec.frame.TooLongFrameException: HTTP header is larger than 8192 bytes.

Any recommendations on how to increase the max header size that netty should handle?

I cannot find any documentation on the matter and I am starting to dig through the code now.

Thank you,
Lois.

I should post more often since I always solve my own problems a few minutes afterwards even after searching a long time :frowning:

The setting is in gatling.conf - httpClientCodecMaxHeaderSize

I increased it to 16k for my use case.

Just being curious: what are you doing with such humongous HTTP headers?

Believe me, I don’t like it at all. The website and associated services that I am testing, takes all the cookies from a certain subdomain and the top level domain and puts them all in one header. It then uses that to track certain states.

It will eventually be simplified but for now that’s what we have.

Thank you very much for your work on Gatling, it is allowing me to write some very complex and dynamic scenarios in a nice terse syntax.

Cheers,
Lois.

Thanks for your kind words :slight_smile: