[Varnish] #772: cli_buffer parameter doesn't work.

Varnish varnish-bugs at varnish-cache.org
Mon Nov 29 14:20:49 CET 2010


#772: cli_buffer parameter doesn't work.
------------------------+---------------------------------------------------
 Reporter:  Estartu     |        Owner:  martin
     Type:  defect      |       Status:  closed
 Priority:  normal      |    Milestone:        
Component:  varnishd    |      Version:  trunk 
 Severity:  normal      |   Resolution:  fixed 
 Keywords:  cli_buffer  |  
------------------------+---------------------------------------------------
Changes (by martin):

  * status:  new => closed
  * resolution:  => fixed


Old description:

> I'm setting my configs via vcl.inline. Works find as long as the config
> and the command shorter than 8192 bytes.
>
> so i tried to increase cli_buffer with param.set cli_buffer 81920
>
> still the input stops at 8192 characters.
>
> The help to cli_buffer states that cli_buffer has to be set via -p. No
> change there to. I even changed the default value in mgt_param.c
>
> The changed value is shown via param.show but the input still stops after
> 8192 characters.
>
> I'm running varnish-2.1.3 SVN 5049:5055 installed via the FreeBSD Port.

New description:

 I'm setting my configs via vcl.inline. Works find as long as the config
 and the command shorter than 8192 bytes.

 so i tried to increase cli_buffer with param.set cli_buffer 81920

 still the input stops at 8192 characters.

 The help to cli_buffer states that cli_buffer has to be set via -p. No
 change there to. I even changed the default value in mgt_param.c

 The changed value is shown via param.show but the input still stops after
 8192 characters.

 I'm running varnish-2.1.3 SVN 5049:5055 installed via the FreeBSD Port.

--

Comment:

 Hi,

 Changesets r5588 and r5589 in trunk should solve your use-case. In order
 to better facilitate larger data sets through the CLI a shell here-
 document style of syntax has been added. This will allow you to send
 arbitrary long VCLs through CLI, as long as no single line is longer than
 8192 bytes. See the commit comment on r5588 for an example. Note also that
 this will only work on authenticated CLI sessions, in order to avoid a DoS
 vector.

 Regards,
 Martin Blix Grydeland

-- 
Ticket URL: <http://www.varnish-cache.org/trac/ticket/772#comment:2>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list