From 462a15ef68793e8b03fb258ed8b21954c032e8eb Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 8 Aug 2017 21:48:48 +0200 Subject: [PATCH] lxccontainer: remove 5s timeout Signed-off-by: Christian Brauner --- src/lxc/lxccontainer.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 3639d6f28..44b4068d2 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -705,18 +705,6 @@ static int lxc_rcv_status(int state_socket) { int ret; int state = -1; - struct timeval timeout = {0}; - - /* Set 5 second timeout to prevent hanging forever in case something - * goes wrong. 5 seconds is a long time to get into RUNNING state. - */ - timeout.tv_sec = 5; - ret = setsockopt(state_socket, SOL_SOCKET, SO_RCVTIMEO, - (const void *)&timeout, sizeof(timeout)); - if (ret < 0) { - SYSERROR("Failed to set 5s timeout on containter state socket"); - return -1; - } again: /* Receive container state. */ -- 2.47.2