Set client poll() timeout to 20s 25/205225/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 30 Apr 2019 08:31:51 +0000 (10:31 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 30 Apr 2019 08:31:51 +0000 (10:31 +0200)
Previously there was no timeout at all. The timeout value has to be
big enough to avoid timeouts in regular requests and small enough to
prevent the client from being catched by deadlock detector.

After the deadlock issue is fixed this commit should be reverted.

Change-Id: I2adfb533954b55b105bdf55c51c9fbd62ce5cd6c

src/common/connection.cpp

index 2a073438e511432014e495379fd5cfa2ec6a0fc6..7cf68f1256411900de71da63ccfff1240139c1a0 100644 (file)
@@ -44,7 +44,7 @@
 
 namespace {
 
-const int POLL_TIMEOUT = -1;
+const int POLL_TIMEOUT = 20*1000; // 20s
 
 int waitForSocket(int sock, int event, int timeout) {
     int retval;