Hello,

On Tue, May 11, 2021 at 04:23:09PM +0200, Adis Nezirovic wrote:
> On 5/11/21 4:15 PM, Tom wrote:
> > When I add some more conditions, then I got an error after reloading the
> > daemon:
> > 
> > "line too long, truncating at word 65, position 783:..."
> 
> I'm also interested in technical reason for this limitation :), waiting for
> smarter people to speak ;)

There's a default limit of 2kB per line and 64 words. They can be changed
respectively by defining LINESIZE and MAX_LINE_ARGS. This last one needs
to be changed in defaults.h though.

The reason for the 2kB limit (which started at 256 long ago) was that it's
what fits in a terminal, and quite frankly when you're editing a single
line that is that long, it's a horrible pain. And also please bear with
those at the end of the chain who help you with bug reports and who have
to face such monstrosities (such as a long horizontal scroll wheel in
github issues that prevents from reading any context).

Regarding the max args of 64. It used to be considered insanely huge when
it was defined.

What do you guys think a more acceptable limit would be for each of them ?
Both can be increased if needed, they will only use a little bit more
memory during the parsing.

Willy

Reply via email to