/programs/network/downloader/downloader.asm |
---|
369,9 → 369,9 |
.read: |
mcall recv, [socketnum], [pos], BUFFERSIZE, 0 |
inc eax ; -1 = error (socket closed?) |
jz .error |
dec eax ; 0 bytes means the remote end closed the connection |
jz .no_more_data |
dec eax ; 0 bytes... |
jz .read |
DEBUGF 1, "Got chunk of %u bytes\n", eax |
385,9 → 385,6 |
pop eax |
jmp .read |
.error: |
DEBUGF 1, "Socket error: %u\n", ebx |
.no_more_data: |
mov eax, [buf_ptr] |
sub [pos], eax |