Fixed blocking in SOCKET_receive_tcp
git-svn-id: svn://kolibrios.org@2998 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
acf20d57c8
commit
6e328be793
@ -842,10 +842,10 @@ SOCKET_receive_tcp:
|
||||
mov edi, edx
|
||||
xor edx, edx
|
||||
add eax, STREAM_SOCKET.rcv
|
||||
.loop: ;;;; FIXME: ecx!
|
||||
.loop:
|
||||
cmp [eax + RING_BUFFER.size], 0
|
||||
je .block
|
||||
call SOCKET_ring_read
|
||||
test ecx, ecx
|
||||
jz .block
|
||||
call SOCKET_ring_free
|
||||
|
||||
mov [esp+32], ecx ; return number of bytes copied
|
||||
|
Loading…
Reference in New Issue
Block a user