mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-21 22:07:15 +00:00
Fixed receive window zero
This commit is contained in:
parent
e323fd73f7
commit
ee850cc59d
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue