mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
iov_buf: Add an explaining comment
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0a20ffb17d
commit
6e94f695c4
@ -75,6 +75,10 @@ bool iov_advance(struct iovec **iov, int *iovcnt, size_t n)
|
||||
|
||||
/*
|
||||
* Skip 0-length iovec's
|
||||
*
|
||||
* There might be empty buffers at the end of iov. Next time we do a
|
||||
* readv/writev based on this iov would give 0 transferred bytes, also
|
||||
* known as EPIPE. So we need to be careful discarding them.
|
||||
*/
|
||||
|
||||
while ((cnt > 0) && (v->iov_len == 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user