Skip to content

Commit

Permalink
lxccontainer: remove 5s timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Aug 15, 2017
1 parent e3ad43b commit 69eb39b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/lxc/lxccontainer.c
Expand Up @@ -702,18 +702,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. */
Expand Down

0 comments on commit 69eb39b

Please sign in to comment.