JoeDog/siege

Increase Header size limit or add Cookie option: Getting [fatal] header is too large

dcoracle opened this issue · 4 comments

Our organization uses cookie session headers that are larger than the current header limit that siege has.

Looking at one of our payloads, it is just shy of 3500 where siege has it set at 2048.

Suggest either increasing header limit or create a new option just for Cookies since it is often larger than 2048

In src/main.c:

if((strlen(optarg) + strlen(my.extra) + 3) > 2048)
NOTIFY(FATAL, "header is too large");

Thanks for the quick response and for the suggestion!

Quickly looking at SO, the standard seems to leave it up to implementation. 8K seems like a good practical limit: https://stackoverflow.com/questions/686217/maximum-on-http-header-values