fix: local port for data connection selected by kernel

git-svn-id: svn://kolibrios.org@1287 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
tsdima 2009-11-27 19:38:11 +00:00
parent 42f40b69fb
commit 9162c6e06b

View File

@ -601,7 +601,7 @@ disconnectData:
; to wait for all data to pass through the stack before closing ; to wait for all data to pass through the stack before closing
pusha pusha
mov eax,5 mov eax,5
mov ebx,200 ; Delay for 2s mov ebx,10 ; Delay for 100ms
mcall mcall
popa popa
@ -661,7 +661,7 @@ connectData:
mov ebx, 5 ; Open TCP socket mov ebx, 5 ; Open TCP socket
mov esi, [DataIP] ; remote IP address mov esi, [DataIP] ; remote IP address
mov edx, [DataPort] ; remote port mov edx, [DataPort] ; remote port
mov ecx, 20 ; ftp data port id mov ecx, 0 ; ftp data port id
mov edi, 1 ; active open mov edi, 1 ; active open
mcall mcall
mov [DataSocket], eax mov [DataSocket], eax