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:
parent
eb8b342d56
commit
65a0f233b9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user