MCPcopy Create free account
hub / github.com/apache/brpc / set_timeout_ms

Method set_timeout_ms

src/brpc/controller.cpp:334–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void Controller::set_timeout_ms(int64_t timeout_ms) {
335 if (timeout_ms <= 0x7fffffff) {
336 _timeout_ms = timeout_ms;
337 _real_timeout_ms = timeout_ms;
338 } else {
339 _timeout_ms = 0x7fffffff;
340 LOG(WARNING) << "timeout_ms is limited to 0x7fffffff (roughly 24 days)";
341 }
342}
343
344void Controller::set_backup_request_ms(int64_t timeout_ms) {
345 if (timeout_ms <= 0x7fffffff) {

Callers 15

EchoMethod · 0.80
senderFunction · 0.80
default_methodMethod · 0.80
TestRPCTimeoutMethod · 0.80
TestRetryMethod · 0.80
TestBackupRequestMethod · 0.80

Calls

no outgoing calls

Tested by 11

TestRPCTimeoutMethod · 0.64
TestRetryMethod · 0.64
TestBackupRequestMethod · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64