Squid configuration directive server_pconn_for_nonretriable
For older versions than v4 see the linked pages above
Configuration Details:
Option Name: | server_pconn_for_nonretriable |
---|---|
Replaces: | |
Requires: | |
Default Value: | Open new connections for forwarding requests Squid cannot retry safely. |
Suggested Config: |
|
This option provides fine-grained control over persistent connection reuse when forwarding HTTP requests that Squid cannot retry. It is useful in environments where opening new connections is very expensive (e.g., all connections are secured with TLS with complex client and server certificate validation) and race conditions associated with persistent connections are very rare and/or only cause minor problems. HTTP prohibits retrying unsafe and non-idempotent requests (e.g., POST). Squid limitations also prohibit retrying all requests with bodies (e.g., PUT). By default, when forwarding such "risky" requests, Squid opens a new connection to the server or cache_peer, even if there is an idle persistent connection available. When Squid is configured to risk sending a non-retriable request on a previously used persistent connection, and the server closes the connection before seeing that risky request, the user gets an error response from Squid. In most cases, that error response will be HTTP 502 (Bad Gateway) with ERR_ZERO_SIZE_OBJECT or ERR_WRITE_ERROR (peer connection reset) error detail. If an allow rule matches, Squid reuses an available idle persistent connection (if any) for the request that Squid cannot retry. If a deny rule matches, then Squid opens a new connection for the request that Squid cannot retry. This option does not affect requests that Squid can retry. They will reuse idle persistent connections (if any). This clause only supports fast acl types. See https://wiki.squid-cache.org/SquidFaq/SquidAcl for details. Example: acl SpeedIsWorthTheRisk method POST server_pconn_for_nonretriable allow SpeedIsWorthTheRisk |
|
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
Miscellaneous
- Developer Resources
- Related Writings
- Related Software:
- Squid Artwork
Web Site Translations
Mirrors
- Website:
- gr il pl ... full list
- FTP Package Archive