Looks like I had been fallen asleep before finishing the implementation.

After successfully copying the data from the receive queue into a new
buffer, we should actually return that buffer and update the queue size.
recv() doesn't KDL anymore when reading less data than queued.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24885 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-04-10 03:27:31 +00:00
parent eb8b342d56
commit 65a0f233b9

View File

@ -89,7 +89,10 @@ UnixBufferQueue::Read(size_t size, net_buffer** _buffer)
// remove the part we've copied
gBufferModule->remove_header(buffer, size);
fSize -= size;
*_buffer = newBuffer;
return B_OK;
}