Skip to content

Help with "too many connection resets" error #19

Closed
@softwaregravy

Description

@softwaregravy

My error is getting raised here.
https://github.com/drbrain/net-http-persistent/blob/master/lib/net/http/persistent.rb#L821

Full error:
"{too many connection resets (due to Timeout::Error - Timeout::Error) after 748740 requests on 69326240, last used 60.068056358 seconds ago\n/app/vendor/bundle/ruby/1.9.1/gems/net-http-persistent-2.5.2/lib/net/http/persistent.rb:821:i

Just trying to understand what I'm doing wrong. I'm probably mis-using the library somehow.

Do I need to be periodically closing connections? Won't they just re-open on an error like this?

Mechanize seems to have a similar issue. It's a long thread, I'm trying to see if there's an overlap.
https://github.com/tenderlove/mechanize/issues/123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions