Nog een poging...
This commit is contained in:
parent
667859d984
commit
a0cf9af7e2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue