blob: 279a0fd020ef971f849bcb4a993d1d4c3b12a8fb [file] [log] [blame]
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <grpcpp/grpcpp.h>
namespace vm_tools::cicerone {
// How long to wait before timing out on regular RPCs.
constexpr int64_t kDefaultTimeoutSeconds = 60;
// How long to wait before timing out on connecting to Tremplin or Garcon.
constexpr int64_t kConnectTimeoutSeconds = 5;
// How long to wait while doing more complex operations like starting or
// creating a container.
constexpr int64_t kLongOperationTimeoutSeconds = 120;
gpr_timespec ToGprDeadline(int64_t seconds);
} // namespace vm_tools::cicerone