break;
}
assert_msg(active_fd == 1 , "poll() returned an unexpected value");
- return MEMCACHED_SUCCESS;
+
+ if (fds.revents & POLLIN or fds.revents & POLLOUT)
+ {
+ return MEMCACHED_SUCCESS;
+ }
+
+ return memcached_set_error(*ptr, MEMCACHED_FAILURE, MEMCACHED_AT, memcached_literal_param("poll() returned a value that was not dealt with"));
}
else if (active_fd == 0)
{
}
else
{
- world->servers().set_servers_to_run(8);
+ world->servers().set_servers_to_run(libtest::number_of_cpus() > 3 ?
+ libtest::number_of_cpus() : 3);
}
world->collections(collection);