Fixed blocking in SOCKET_receive_tcp

git-svn-id: svn://kolibrios.org@2998 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2012-11-03 16:31:13 +00:00
parent acf20d57c8
commit 6e328be793

View File

@ -842,10 +842,10 @@ SOCKET_receive_tcp:
mov edi, edx mov edi, edx
xor edx, edx xor edx, edx
add eax, STREAM_SOCKET.rcv add eax, STREAM_SOCKET.rcv
.loop: ;;;; FIXME: ecx! .loop:
cmp [eax + RING_BUFFER.size], 0
je .block
call SOCKET_ring_read call SOCKET_ring_read
test ecx, ecx
jz .block
call SOCKET_ring_free call SOCKET_ring_free
mov [esp+32], ecx ; return number of bytes copied mov [esp+32], ecx ; return number of bytes copied