Name

peer_connect_timeout

Synopsis

This is similar to connect_timeout, except that it applies to connections to your neighbors. Most likely, you’ll want a smaller timeout for neighbor connections because they should be closer to you than most origin servers. If a neighbor is down, you want the connection to time out quickly so that you can try another source. Note that you can also specify individual neighbor timeouts with the connect-timeout option of the cache_peer directive.

Syntax

peer_connect_timeout time-specification

Default

peer_connect_timeout 30 seconds

Example

peer_connect_timeout 15 seconds

Related

connect_timeout

Get Squid: The Definitive Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.