mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
bump takeover receive timeout to five minutes
Summary: Temporary fix to bump the takeover timeout to five minutes Reviewed By: simpkins Differential Revision: D7660642 fbshipit-source-id: 5b3a0347aa1443e395e9461d33459c62ffce5b2d
This commit is contained in:
parent
75b32848c6
commit
1f256dd26e
@ -21,6 +21,15 @@ using apache::thrift::CompactSerializer;
|
||||
using folly::IOBuf;
|
||||
using std::string;
|
||||
|
||||
/**
|
||||
* Five minutes is a high default value. This could be lowered back to one
|
||||
* minute after takeover no longer does O(loaded) expensive save operations.
|
||||
*/
|
||||
DEFINE_int32(
|
||||
takeoverReceiveTimeout,
|
||||
300,
|
||||
"Timeout for receiving takeover data from old process in seconds");
|
||||
|
||||
namespace facebook {
|
||||
namespace eden {
|
||||
|
||||
@ -46,7 +55,7 @@ TakeoverData takeoverMounts(
|
||||
})
|
||||
.then([&socket] {
|
||||
// Wait for the takeover data response
|
||||
auto timeout = std::chrono::seconds(60);
|
||||
auto timeout = std::chrono::seconds(FLAGS_takeoverReceiveTimeout);
|
||||
return socket.receive(timeout);
|
||||
})
|
||||
.then([&expectedMessage](UnixSocket::Message&& msg) {
|
||||
|
Loading…
Reference in New Issue
Block a user