class Rack::RewindableInput

def close

This method may be called multiple times. It does nothing on subsequent calls.

has created.
wrapped IO object. Cleans up any temporary resources that this RewindableInput
Closes this RewindableInput object without closing the originally
def close
  if @rewindable_io
    if @unlinked
      @rewindable_io.close
    else
      @rewindable_io.close!
    end
    @rewindable_io = nil
  end
end