From 67bacab23e3dcc176f3293ed710824e3ec4e10f8 Mon Sep 17 00:00:00 2001 From: ZPaC Date: Sat, 25 Feb 2023 19:44:22 +0800 Subject: [PATCH] Adjust retry interval --- mindspore/ccsrc/distributed/rpc/tcp/tcp_socket_operation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/distributed/rpc/tcp/tcp_socket_operation.cc b/mindspore/ccsrc/distributed/rpc/tcp/tcp_socket_operation.cc index fafc897cf92..5fbbf8a1e95 100644 --- a/mindspore/ccsrc/distributed/rpc/tcp/tcp_socket_operation.cc +++ b/mindspore/ccsrc/distributed/rpc/tcp/tcp_socket_operation.cc @@ -20,7 +20,7 @@ namespace mindspore { namespace distributed { namespace rpc { constexpr int EAGAIN_RETRY = 1024000; -constexpr int EAGAIN_SLEEP_INTERVAL = 10000; +constexpr int EAGAIN_SLEEP_INTERVAL = 100; ssize_t TCPSocketOperation::ReceivePeek(Connection *connection, char *recvBuf, uint32_t recvLen) { return recv(connection->socket_fd, recvBuf, recvLen, MSG_PEEK);