class Rack::Session::Pool

def write_session(req, session_id, new_session, options)

def write_session(req, session_id, new_session, options)
  @mutex.synchronize do
    @pool.store session_id.private_id, new_session
    session_id
  end
end