Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Net::HTTP trying to call closed? on nil #446

@johnnyt

Description

@johnnyt

When performing #request - if an error is raised there is an attempt to close the socket - which is sometimes nil - and the following error is raised which masks the original exception

NoMethodError - NoMethodError: undefined method `closed?' for NilClass:
.../maglev/lib/ruby/1.9/net/http.rb:1060:in `request'
.../maglev/lib/ruby/1.9/net/http.rb:1058:in `request'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions