Mercurial > hg
view contrib/vagrant/Vagrantfile @ 25691:5cda0ce05c42
wireproto: add config knob for http header length limit
Well-behaved Mercurial clients will respect the httpheader capability by not
sending http headers longer than the given limit in bytes. The limit is
currently hard-coded at 1024 bytes, a safe value for any web server.
Since parsing headers is a notable factor in web server performance, tuning
header size can nontrivially improve performance for request-heavy operations
(eg. obsolete marker negotiation). Exposing the maximum header length limit
as a configuration setting is a simple way to enable such tuning.
author | Mike Edgar <adgar@google.com> |
---|---|
date | Mon, 29 Jun 2015 12:35:31 -0400 |
parents | 8da01b6e7b49 |
children | a31ffc445f02 |
line wrap: on
line source
# -*- mode: ruby -*- Vagrant.configure('2') do |config| # Debian 7.4 32-bit i386 without configuration management software config.vm.box = "puppetlabs/debian-7.4-32-nocm" #config.vm.box = "pnd/debian-wheezy32-basebox" config.vm.hostname = "tests" config.vm.define "tests" do |conf| conf.vm.provision :file, source: "run-tests.sh", destination:"run-tests.sh" conf.vm.provision :shell, path: "provision.sh" conf.vm.synced_folder "../..", "/hgshared" end end