From 27b928368a8c148fa3afd22780e5521df29ca4bc Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 28 Sep 2009 10:09:06 +0000 Subject: [PATCH] * slow work in TCP resending fixed * TCP resend timeout increased to slightly more realistic value git-svn-id: svn://kolibrios.org@1183 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/tcp.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/network/tcp.inc b/kernel/trunk/network/tcp.inc index 9993c164c4..0c7ce6ae4a 100644 --- a/kernel/trunk/network/tcp.inc +++ b/kernel/trunk/network/tcp.inc @@ -42,7 +42,7 @@ TH_URG = 0x20 TWOMSL equ 10 ; # of secs to wait before closing socket TCP_RETRIES equ 5 ; Number of times to resend a packet -TCP_TIMEOUT equ 10 ; resend if not replied to in x hs +TCP_TIMEOUT equ 20 ; resend if not replied to in x hs ;******************************************************************* ; Interface @@ -228,9 +228,8 @@ proc tcp_tx_handler stdcall mov edi, eax pop ecx ; Now get buffer location, and copy buffer across. argh! more copying,, - mov esi, resendBuffer - @@: add esi, IPBUFFSIZE - loop @b + imul esi, ecx, IPBUFFSIZE + add esi, resendBuffer ; we have resend buffer location in esi mov ecx, IPBUFFSIZE