Skip to content

Commit

Permalink
fix recv_at_least()
Browse files Browse the repository at this point in the history
  • Loading branch information
lihuiba committed Oct 10, 2024
1 parent b41b89e commit 2b25761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/basic_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ bool ISocketStream::skip_read(size_t count) {

ssize_t ISocketStream::recv_at_least(void* buf, size_t count, size_t least, int flags) {
return DOIO_LOOP_LAMBDA(recv(buf, count, flags), {
(char*&)buf += ret;
count -= ret;
return n < least;
});
Expand Down

0 comments on commit 2b25761

Please sign in to comment.