Documentation
¶
Overview ¶
Package httpx is the transport every client of the relay and the ccc-pages service runs on.
A pooled HTTP/2 connection whose path died (a NAT entry dropped, the network changed) reads nothing and errors nothing: every request on it waits out its timeout, and the pool hands the same connection to the next one, so a long-running serve gets nothing through until it restarts. Transport pings a connection that has read nothing for ReadIdle and closes it when the ping goes unanswered for PingTimeout; the next request dials afresh.
Index ¶
Constants ¶
const ( ReadIdle = 15 * time.Second PingTimeout = 10 * time.Second )
Variables ¶
var Transport = NewTransport(nil, ReadIdle, PingTimeout)
Transport is the shared transport: one connection pool for the process.
Functions ¶
Types ¶
This section is empty.