Most open trackers do not have the problem of not being called often enough.. so do not introduce an extra timeout when waiting for activity. That also removes one of the last extraneous gettimeofday calls

dynamic-accesslists
erdgeist 17 years ago
parent 6c1adb8fc8
commit ffffd80719

@ -728,11 +728,9 @@ static void server_mainloop( ) {
time_t next_timeout_check = g_now + OT_CLIENT_TIMEOUT_CHECKINTERVAL;
for( ; ; ) {
tai6464 t;
int64 i;
taia_uint( &t, (unsigned int)(g_now + OT_CLIENT_TIMEOUT_CHECKINTERVAL) );
io_waituntil( t );
io_wait();
while( ( i = io_canread( ) ) != -1 ) {
const void *cookie = io_getcookie( i );

Loading…
Cancel
Save