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:
parent
14344eeea3
commit
a124e197a2
@ -142,8 +142,6 @@ namespace mongo {
|
|||||||
|
|
||||||
static long connNumber = 0;
|
static long connNumber = 0;
|
||||||
struct timeval maxSelectTime;
|
struct timeval maxSelectTime;
|
||||||
maxSelectTime.tv_sec = 0;
|
|
||||||
maxSelectTime.tv_usec = 10000;
|
|
||||||
while ( ! inShutdown() ) {
|
while ( ! inShutdown() ) {
|
||||||
fd_set fds[1];
|
fd_set fds[1];
|
||||||
FD_ZERO(fds);
|
FD_ZERO(fds);
|
||||||
@ -152,6 +150,8 @@ namespace mongo {
|
|||||||
FD_SET(*it, fds);
|
FD_SET(*it, fds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
maxSelectTime.tv_sec = 0;
|
||||||
|
maxSelectTime.tv_usec = 10000;
|
||||||
const int ret = select(maxfd+1, fds, NULL, NULL, &maxSelectTime);
|
const int ret = select(maxfd+1, fds, NULL, NULL, &maxSelectTime);
|
||||||
|
|
||||||
if (ret == 0){
|
if (ret == 0){
|
||||||
|
Loading…
Reference in New Issue
Block a user