Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 2.0 IOErrors #41

Closed
andrewvc opened this issue May 24, 2013 · 2 comments
Closed

Ruby 2.0 IOErrors #41

andrewvc opened this issue May 24, 2013 · 2 comments

Comments

@andrewvc
Copy link

I'm getting this on long running tests that re-use a connection in ruby 2.0. Any ideas?

Net::HTTP::Persistent::Error:
       too many connection resets (due to closed stream - IOError) after 0 requests on 70256438811280, last used 1369411589.016047 seconds ago
     # /Users/andrewcholakian/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/net-http-persistent-2.8/lib/net/http/persistent.rb:959:in `rescue in request'
     # /Users/andrewcholakian/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/net-http-persistent-2.8/lib/net/http/persistent.rb:968:in `request'
     # /Users/andrewcholakian/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/faraday-0.8.7/lib/faraday/adapter/net_http_persistent.rb:17:in `perform_request'
@drbrain
Copy link
Owner

drbrain commented Jul 23, 2013

The exception indicates the connection was closed, likely before you were able to read from the server.

I'll preserve the original backtrace in the exception to help track this down.

drbrain added a commit that referenced this issue Jul 23, 2013
This allows users to get a better idea of why they see the "too many
connection resets" errors.

See #41
@dylanahsmith
Copy link
Contributor

Are you using fakeweb at all?

If so, then this pull request will probably explain and fix your problem:
chrisk/fakeweb#43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants