aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent/agent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/agent/agent.cxx')
-rw-r--r--bbot/agent/agent.cxx20
1 files changed, 11 insertions, 9 deletions
diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx
index 867185b..9f70aec 100644
--- a/bbot/agent/agent.cxx
+++ b/bbot/agent/agent.cxx
@@ -293,13 +293,14 @@ bootstrap_machine (const dir_path& md,
};
// The first request should be the toolchain download. Wait for up to
- // 5 minutes for that to arrive. In a sense we use it as an indication
- // that the machine has booted and the bootstrap process has started.
- // Why wait so long you may wonder? Well, we may be using a new MAC
- // address and operating systems like Windows may need to digest that.
+ // 5 minutes (by default) for that to arrive. In a sense we use it as
+ // an indication that the machine has booted and the bootstrap process
+ // has started. Why wait so long you may wonder? Well, we may be using
+ // a new MAC address and operating systems like Windows may need to
+ // digest that.
//
size_t to;
- const size_t startup_to (5 * 60);
+ const size_t startup_to (ops.bootstrap_startup ());
const size_t bootstrap_to (ops.bootstrap_timeout ());
const size_t shutdown_to (5 * 60);
@@ -1477,12 +1478,13 @@ try
};
// The first request should be the task manifest download. Wait for up
- // to 2 minutes for that to arrive (again, that long to deal with
- // flaky Windows networking). In a sense we use it as an indication
- // that the machine has booted and the worker process has started.
+ // to 4 minutes (by default) for that to arrive (again, that long to
+ // deal with flaky Windows networking, etc). In a sense we use it as
+ // an indication that the machine has booted and the worker process
+ // has started.
//
size_t to;
- const size_t startup_to (120);
+ const size_t startup_to (ops.build_startup ());
const size_t build_to (tm.interactive
? ops.intactive_timeout ()
: ops.build_timeout ());