diff options
author | wuzhouhui <wuzhouhui14@mails.ucas.ac.cn> | 2019-03-10 11:35:46 +0800 |
---|---|---|
committer | wuzhouhui <wuzhouhui14@mails.ucas.ac.cn> | 2019-03-10 11:35:46 +0800 |
commit | c7886c5d50782b9653ab41772fb93cff0c0ad9da (patch) | |
tree | 40c19afeb78d6ba6f150a3e52c62f3262faa1f9c /src/vcl/vcl_test.h | |
parent | 738b299a8ed633b59e34f0709a8e164c9edc8852 (diff) |
vcl: update buf if whole buf cannot be done at once
Change-Id: I0d56d2cee012b46da848362f322d6f246f8bf4c2
Signed-off-by: wuzhouhui <wuzhouhui14@mails.ucas.ac.cn>
Diffstat (limited to 'src/vcl/vcl_test.h')
-rw-r--r-- | src/vcl/vcl_test.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vcl/vcl_test.h b/src/vcl/vcl_test.h index 638d519d95c..cb38f291cfb 100644 --- a/src/vcl/vcl_test.h +++ b/src/vcl/vcl_test.h @@ -509,6 +509,7 @@ vcl_test_write (int fd, uint8_t * buf, uint32_t nbytes, if (tx_bytes != nbytes) { nbytes_left = nbytes_left - rv; + buf += rv; if (stats) stats->tx_incomp++; } |