drbrain / net-http-persistent

Thread-safe persistent connections with Net::HTTP
http://seattlerb.rubyforge.org/net-http-persistent
339 stars 117 forks source link

td-agent faild to send log to loggly because of net-http-persistent 3.0.0 is not compatible with fluent-plugin-forest #81

Closed ghost closed 5 years ago

ghost commented 8 years ago

We have found net-http-persistent 3.0.0 not compatible with fluent-plugin-forest. because of that td-agent not able to sent log to loggly using fluent-plugin-forest.

[error]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/net-http-persistent-3.0.0/lib/net/http/persistent.rb:505:in `initialize'

drbrain commented 8 years ago

net-http-persistent uses semantic versioning. Since the major version changed you must expect to update your software due to API changes in net-http-persistent.

I don't see that fluent-plugin-forest has an explicit dependency on net-http-persistent so I'm guessing by the path in the error above that you embed it.

Until you update your dependencies to work with the 3.x series you should downgrade to the newest 2.9.x version.

What is the nature of the incompatibility you encounter? Maybe I can make a change to mitigate it.