The pkg(5) client opens 20 parallel connections to
the depot server when performing network operations. Make sure the number
of depot threads matches the expected connections to the server at any given
time. Use the following commands to set the number of threads per depot:

Use nocanon to suppress canonicalization of URLs. This setting is
important in order for search to work well. Also, limit the number of back-end connections to the
number of threads the depot server provides. The following partial httpd.conf
file shows how to proxy one depot server: