Fixed wrong timeout interval 33/192233/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Nov 2018 08:27:10 +0000 (17:27 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Nov 2018 08:27:10 +0000 (17:27 +0900)
Change-Id: I8413cb5f8288e7743edd2643b7899cde05b9b26a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/port-internal.cc

index 7733afd..2cd3a72 100644 (file)
@@ -119,7 +119,7 @@ int Port::Write(const void* buf, unsigned int size) {
   fds[0].revents = 0;
 
   clock_gettime(CLOCK_MONOTONIC, &start_time);
-  ret = poll(fds, 1, MAX_SLEEP * 1000);
+  ret = poll(fds, 1, MAX_SLEEP * MAX_CNT);
   clock_gettime(CLOCK_MONOTONIC, &end_time);
   if (ret == 0) {
     LOGE("write_socket: : fd %d poll timeout", fd_);