!49423 Adjust retry interval

Merge pull request !49423 from ZPaC/adjust-retry-interval
This commit is contained in:
i-robot 2023-02-27 07:12:04 +00:00 committed by Gitee
commit b2390a782d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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);