[ANN] net-http-persistent 2.4.1 Released

net-http-persistent version 2.4.1 has been released!

* http://docs.seattlerb.org/net-http-persistent
* https://github.com/drbrain/net-http-persistent

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.1 / 2012-02-03

* Bug fixes
* When FakeWeb or WebMock are loaded SSL sessions will not be reused to
   prevent breakage of testing frameworks. Issue #13 by Matt Brictson, pull
   request #14 by Zachary Scott
* SSL connections are reset when the SSL parameters change.
   Mechanize issue #194 by dsisnero
* Last-use times are now cleaned up in #shutdown.

Just thought I'd say thanks for this awesome library.

···

On Mon, Feb 6, 2012 at 1:14 PM, Eric Hodel <drbrain@segment7.net> wrote:

net-http-persistent version 2.4.1 has been released!

* net-http-persistent-4.0.0 Documentation
* GitHub - drbrain/net-http-persistent: Thread-safe persistent connections with Net::HTTP

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.1 / 2012-02-03

* Bug fixes
* When FakeWeb or WebMock are loaded SSL sessions will not be reused to
  prevent breakage of testing frameworks. Issue #13 by Matt Brictson, pull
  request #14 by Zachary Scott
* SSL connections are reset when the SSL parameters change.
  Mechanize issue #194 by dsisnero
* Last-use times are now cleaned up in #shutdown.

--
Tony Arcieri

Could net-http-persistent be used with Faraday so that consecutive API calls
(e.g. for paginating through a long list, where only 200 entries are
returned
per API call) could be more efficient? Would this be a useful use case for
net-http-persistent?

Searching for 'net-http-persistent' on the Faraday project

  GitHub - technoweenie/faraday: READ-ONLY fork of https://github.com/lostisland/faraday

did not reveal any existing references. And searching for Faraday on
the net-http-persistent project did not reveal relevant results.

Thanks,

Peter

···

On Mon, Feb 6, 2012 at 1:14 PM, Eric Hodel <drbrain@segment7.net> wrote:

net-http-persistent version 2.4.1 has been released!

* net-http-persistent-4.0.0 Documentation
* GitHub - drbrain/net-http-persistent: Thread-safe persistent connections with Net::HTTP

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.

This is just a guess, but I think out of the box the answer is no. But looking at:

it looks like it is probably very easy to add the support.

···

On Feb 7, 2012, at 01:40 , Peter Vandenabeele wrote:

On Mon, Feb 6, 2012 at 1:14 PM, Eric Hodel <drbrain@segment7.net> wrote:

net-http-persistent version 2.4.1 has been released!

* net-http-persistent-4.0.0 Documentation
* GitHub - drbrain/net-http-persistent: Thread-safe persistent connections with Net::HTTP

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.

Could net-http-persistent be used with Faraday so that consecutive API calls
(e.g. for paginating through a long list, where only 200 entries are
returned
per API call) could be more efficient? Would this be a useful use case for
net-http-persistent?

Searching for 'net-http-persistent' on the Faraday project

GitHub - technoweenie/faraday: READ-ONLY fork of https://github.com/lostisland/faraday

did not reveal any existing references. And searching for Faraday on
the net-http-persistent project did not reveal relevant results.

It would be better to keep this part:

and rewrite the bit above that to set up Net::HTTP::Persistent instead.

···

On Feb 7, 2012, at 1:57 AM, Ryan Davis wrote:

On Feb 7, 2012, at 01:40 , Peter Vandenabeele wrote:

On Mon, Feb 6, 2012 at 1:14 PM, Eric Hodel <drbrain@segment7.net> wrote:

net-http-persistent version 2.4.1 has been released!

* net-http-persistent-4.0.0 Documentation
* GitHub - drbrain/net-http-persistent: Thread-safe persistent connections with Net::HTTP

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.

Could net-http-persistent be used with Faraday so that consecutive API calls
(e.g. for paginating through a long list, where only 200 entries are
returned
per API call) could be more efficient? Would this be a useful use case for
net-http-persistent?

Searching for 'net-http-persistent' on the Faraday project

GitHub - technoweenie/faraday: READ-ONLY fork of https://github.com/lostisland/faraday

did not reveal any existing references. And searching for Faraday on
the net-http-persistent project did not reveal relevant results.

This is just a guess, but I think out of the box the answer is no. But looking at:

faraday/lib/faraday/adapter/net_http.rb at master · technoweenie/faraday · GitHub

it looks like it is probably very easy to add the support.