drbrain / net-http-persistent

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

NoMethodError #87

Open confact opened 7 years ago

confact commented 7 years ago

I am using this doing http checks on many urls many times per day.

And i get this error many times per day, is it a bug or a problem i have done?

NoMethodErrorlib/net/http/persistent.rb in block in request at line 929
undefined method `<=' for nil:NilClass Did you mean? <=>

This is the code where it fails:

      begin
        connection.requests += 1

        response = http.request req, &block

        if req.connection_close? ||
           ((response.http_version <= '1.0') &&

Could this be wrong url or anything else?

drbrain commented 4 years ago

Can you still reproduce this?