We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ed0b2e commit 45fbbb7Copy full SHA for 45fbbb7
1 file changed
net/http/body.cpp
@@ -92,7 +92,8 @@ class BodyReadStream : public ROStream {
92
93
virtual ssize_t readv(const struct iovec *iov, int iovcnt) override {
94
ssize_t ret = 0;
95
- auto iovec = IOVector(iov, iovcnt);
+ SmartCloneIOV<32> ciovec(iov, iovcnt);
96
+ iovector_view iovec(ciovec.ptr, iovcnt);
97
while (!iovec.empty()) {
98
auto tmp = read(iovec.front().iov_base, iovec.front().iov_len);
99
if (tmp < 0) return tmp;
0 commit comments