Unverified Commit b885c82f authored by Chao Ma's avatar Chao Ma Committed by GitHub
Browse files

[RPC] Remove socket->SetTimeOut() (#1851)

* update

* update

* update

* update

* udpate
parent 0fb615b9
...@@ -192,7 +192,6 @@ bool SocketReceiver::Wait(const char* addr, int num_sender) { ...@@ -192,7 +192,6 @@ bool SocketReceiver::Wait(const char* addr, int num_sender) {
} }
// Initialize socket and socket-thread // Initialize socket and socket-thread
server_socket_ = new TCPSocket(); server_socket_ = new TCPSocket();
server_socket_->SetTimeout(kTimeOut); // seconds
// Bind socket // Bind socket
if (server_socket_->Bind(ip.c_str(), port) == false) { if (server_socket_->Bind(ip.c_str(), port) == false) {
LOG(FATAL) << "Cannot bind to " << ip << ":" << port; LOG(FATAL) << "Cannot bind to " << ip << ":" << port;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment