blob: 5143196f3eba799f24c02db8c0c34dbd6fc70fc8 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
net-http-persistent manages persistent connections using Net::HTTP including a
thread pool for connecting to multiple hosts. Using persistent HTTP connections
can dramatically increase the speed of HTTP. Creating a new HTTP connection for
every request involves an extra TCP round-trip and causes TCP congestion
avoidance negotiation to start over. Net::HTTP supports persistent connections
with some API methods but does not make setting up a single persistent
connection or managing multiple connections easy. Net::HTTP::Persistent wraps
Net::HTTP and allows you to focus on how to make HTTP requests.
|