0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Linux changes timeout parameter

This commit is contained in:
Alberto Lerner 2010-06-22 09:05:32 -07:00
parent 14344eeea3
commit a124e197a2

View File

@ -142,8 +142,6 @@ namespace mongo {
static long connNumber = 0;
struct timeval maxSelectTime;
maxSelectTime.tv_sec = 0;
maxSelectTime.tv_usec = 10000;
while ( ! inShutdown() ) {
fd_set fds[1];
FD_ZERO(fds);
@ -152,6 +150,8 @@ namespace mongo {
FD_SET(*it, fds);
}
maxSelectTime.tv_sec = 0;
maxSelectTime.tv_usec = 10000;
const int ret = select(maxfd+1, fds, NULL, NULL, &maxSelectTime);
if (ret == 0){