Change usleep interval to 10ms 48/266748/1
authorChanggyu Choi <changyu.choi@samsung.com>
Thu, 18 Nov 2021 06:56:30 +0000 (15:56 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Thu, 18 Nov 2021 06:56:30 +0000 (15:56 +0900)
Change-Id: If28901605ab71b24ecbbec264caa5cf75cb84190
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/lib/socket/client_socket.cc

index 319f21e..d89d961 100644 (file)
@@ -27,7 +27,7 @@
 namespace amd {
 namespace {
 
-constexpr const int MAX_RETRY_CNT = 10;
+constexpr const int MAX_RETRY_CNT = 2;
 
 }  // namespace
 
@@ -84,7 +84,7 @@ int ClientSocket::Send(const void* buf, unsigned int size) {
         if (retry_cnt > 0) {
           retry_cnt--;
           _E("send(): fd(%d), errno(%d). sleep and retry ...", fd_, errno);
-          usleep(2 * 1000);
+          usleep(10 * 1000);
           continue;
         }
       }