Nog een poging...

This commit is contained in:
Thulinma 2010-11-07 23:57:21 +01:00
parent 667859d984
commit a0cf9af7e2

View file

@ -88,7 +88,8 @@ int main(){
//rightnow = getNowMS(); //rightnow = getNowMS();
retval = epoll_wait(poller, events, 1, 100); retval = epoll_wait(poller, events, 1, 100);
now = getNowMS(); now = getNowMS();
if ((retval > 0) || ((now - lastcheck > 1000) && (!ready4data || (snd_cnt - snd_window_at >= snd_window_size)))){ if ((retval > 0) || ((now - lastcheck > 1) && (!ready4data || (snd_cnt - snd_window_at >= snd_window_size)))){
lastcheck = now;
parseChunk(); parseChunk();
fflush(CONN); fflush(CONN);
} }