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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.