class Rack::Session::Pool

def find_session(req, sid)

def find_session(req, sid)
  @mutex.synchronize do
    unless sid and session = get_session_with_fallback(sid)
      sid, session = generate_sid(use_mutex: false), {}
      @pool.store sid.private_id, session
    end
    [sid, session]
  end
end