Skip to content

Commit

Permalink
fix socket timeout setting
Browse files Browse the repository at this point in the history
  • Loading branch information
wodesuck authored Dec 28, 2016
1 parent fe46916 commit b70e29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phxbinlogsvr/framework/rpccomm/phxbinlog_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int PhxBinlogClient::SendBinLog(const string &oldgtid, const string &newgtid, co
}

uint32_t old_timeout = stub_interface_->GetTimeOutMS();
stub_interface_->SetTimeOutMS(-1);
stub_interface_->SetTimeOutMS(0); // never timeout
int ret = stub_interface_->SendBinLog(buffer);
stub_interface_->SetTimeOutMS(old_timeout);
return ret;
Expand Down

0 comments on commit b70e29c

Please sign in to comment.