This commit is to change select timeout from 60s to 10s
- 60s timeout is too long to stop dhcpd
- 10s is enough time to wait for a dhcp handshake
Change-Id: I0d1f7d1b86ba6e46ac874fa364e86e9e9418a642
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
static char DHCPD_IFNAME[IFNAMSIZ] = {0,};
#if DHCPD_SELECT
-static struct timeval g_select_timeout = {60, 0};
+static struct timeval g_select_timeout = {10, 0};
#endif
/****************************************************************************
/* Read the next g_state.ds_outpacket */
nbytes = recv(sockfd, &g_state.ds_inpacket, sizeof(struct dhcpmsg_s), 0);
} else if (ret == 0) {
- /* Debugging purpose : Timeout case */
- ndbg("select ret %d [errno %d]\n", ret, errno);
-
if (!g_dhcpd_quit)
continue;
else {