Fixed receive window zero

This commit is contained in:
M66B 2019-05-29 22:58:14 +02:00
parent e323fd73f7
commit ee850cc59d
1 changed files with 0 additions and 5 deletions

View File

@ -227,11 +227,6 @@ uint32_t get_receive_window(const struct ng_session *cur) {
}
uint32_t total = (toforward < window ? window - toforward : 0);
if ((total >> cur->tcp.recv_scale) == 0) {
log_android(ANDROID_LOG_DEBUG, "Receive total %u truncate scale %u",
total, cur->tcp.recv_scale);
total = 0;
}
log_android(ANDROID_LOG_DEBUG, "Receive window toforward %u window %u total %u",
toforward, window, total);