Skip to content

Commit

Permalink
set timeout to 30s in trysync
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelMaker committed Nov 16, 2016
1 parent d363980 commit 7ed3119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pika_trysync_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ void* PikaTrysyncThread::ThreadMain() {


if ((cli_->Connect(master_ip, master_port, g_pika_server->host())).ok()) {
cli_->set_send_timeout(5000);
cli_->set_recv_timeout(5000);
cli_->set_send_timeout(30000);
cli_->set_recv_timeout(30000);
if (Send() && RecvProc()) {
g_pika_server->ConnectMasterDone();
// Stop rsync, binlog sync with master is begin
Expand Down

0 comments on commit 7ed3119

Please sign in to comment.