From 2152b380e367c21c8c76b0c751e7028dbf3bfce8 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Fri, 5 Jun 2020 21:05:55 +0000 Subject: [PATCH] Fix TCP window updates git-svn-id: svn://kolibrios.org@8024 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/tcp_output.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/trunk/network/tcp_output.inc b/kernel/trunk/network/tcp_output.inc index 484763a9f4..dbd3c579a9 100644 --- a/kernel/trunk/network/tcp_output.inc +++ b/kernel/trunk/network/tcp_output.inc @@ -1,6 +1,6 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; Copyright (C) KolibriOS team 2004-2017. All rights reserved. ;; +;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;; ;; Distributed under terms of the GNU General Public License ;; ;; ;; ;; Part of the TCP/IP network stack for KolibriOS ;; @@ -231,13 +231,13 @@ endl mov ebx, TCP_max_win shl ebx, cl pop ecx + sub ebx, [eax + TCP_SOCKET.RCV_ADV] + add ebx, [eax + TCP_SOCKET.RCV_NXT] cmp ebx, ecx jb @f mov ebx, ecx @@: - sub ebx, [eax + TCP_SOCKET.RCV_ADV] - add ebx, [eax + TCP_SOCKET.RCV_NXT] DEBUGF DEBUG_NETWORK_VERBOSE, "TCP_output: we can increase window by %d bytes\n", ebx