Net-http-persistent 2.4 Released

net-http-persistent version 2.4 has been released!

Manages persistent connections using Net::HTTP plus a speed fix for Ruby
1.8.
It’s thread-safe too!

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
handle reconnection gracefully. Net::HTTP::Persistent supports
reconnection
and retry according to RFC 2616.

=== 2.4 / 2012-01-31

  • Minor Enhancement

    • net-http-persistent now complains if OpenSSL::SSL::VERIFY_PEER is
      equal to
      OpenSSL::SSL::VERIFY_NONE. If you have a platform that is broken
      this way
      you must define the constant:

      I_KNOW_THAT_OPENSSL_VERIFY_PEER_EQUALS_VERIFY_NONE_IS_WRONG = nil

      at the top level of your application to disable the warning.

  • Bug fix

    • Fix persisting SSL sessions through HTTP proxies. Mechanize issue
      #178 by
      Robert P., net-http-persistent issues #10, #11.