Skip to content

Commit

Permalink
orchagent: Changing select time out to 1s (sonic-net#119)
Browse files Browse the repository at this point in the history
* orchagent: Changing select time out to 1s
* Add define SELECT_TIMEOUT
  • Loading branch information
Shuotian Cheng committed Nov 1, 2016
1 parent 6b7f4b5 commit 9d4bb0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion orchagent/orchdaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
using namespace std;
using namespace swss;

/* select() function timeout retry time */
#define SELECT_TIMEOUT 1000

/* Global variable gPortsOrch declared */
PortsOrch *gPortsOrch;

Expand Down Expand Up @@ -83,7 +86,7 @@ void OrchDaemon::start()
Selectable *s;
int fd, ret;

ret = m_select->select(&s, &fd, 1);
ret = m_select->select(&s, &fd, SELECT_TIMEOUT);

if (ret == Select::ERROR)
{
Expand Down

0 comments on commit 9d4bb0f

Please sign in to comment.