Debugging sessie uit de hel, contd
This commit is contained in:
parent
6a36ef1db4
commit
336489068b
1 changed files with 1 additions and 5 deletions
|
@ -39,7 +39,6 @@ int mainHandler(int connection){
|
||||||
FLV_Pack * tag = 0;
|
FLV_Pack * tag = 0;
|
||||||
|
|
||||||
//first timestamp set
|
//first timestamp set
|
||||||
int lastcheck = getNowMS();
|
|
||||||
firsttime = getNowMS();
|
firsttime = getNowMS();
|
||||||
|
|
||||||
if (doHandshake()){
|
if (doHandshake()){
|
||||||
|
@ -82,7 +81,6 @@ int mainHandler(int connection){
|
||||||
case -1: break;//not ready yet
|
case -1: break;//not ready yet
|
||||||
default:
|
default:
|
||||||
parseChunk();
|
parseChunk();
|
||||||
lastcheck = getNowMS();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -146,7 +144,6 @@ int mainHandler(int connection){
|
||||||
}
|
}
|
||||||
fwrite(tag->data, tag->len, 1, tmpfile);
|
fwrite(tag->data, tag->len, 1, tmpfile);
|
||||||
#endif
|
#endif
|
||||||
lastcheck = getNowMS();
|
|
||||||
#if DEBUG >= 4
|
#if DEBUG >= 4
|
||||||
fprintf(stderr, "Sent a tag to %i\n", CONN_fd);
|
fprintf(stderr, "Sent a tag to %i\n", CONN_fd);
|
||||||
#endif
|
#endif
|
||||||
|
@ -155,10 +152,9 @@ int mainHandler(int connection){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//send ACK if we received a whole window
|
//send ACK if we received a whole window
|
||||||
if ((rec_cnt - rec_window_at > rec_window_size) || (getNowMS() - lastcheck > 1)){
|
if ((rec_cnt - rec_window_at > rec_window_size)){
|
||||||
rec_window_at = rec_cnt;
|
rec_window_at = rec_cnt;
|
||||||
SendCTL(3, rec_cnt);//send ack (msg 3)
|
SendCTL(3, rec_cnt);//send ack (msg 3)
|
||||||
lastcheck = getNowMS();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(CONN_fd);
|
close(CONN_fd);
|
||||||
|
|
Loading…
Add table
Reference in a new issue