mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
ircd: Assurances the full-transfer socket methods do just that.
This commit is contained in:
parent
8955328479
commit
5b40a9ad91
1 changed files with 5 additions and 3 deletions
|
@ -206,7 +206,9 @@ size_t
|
||||||
write(socket &socket,
|
write(socket &socket,
|
||||||
const iov &bufs)
|
const iov &bufs)
|
||||||
{
|
{
|
||||||
return socket.write(bufs);
|
const auto wrote(socket.write(bufs));
|
||||||
|
assert(wrote == size(bufs));
|
||||||
|
return wrote;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
|
@ -234,7 +236,7 @@ socket::write(const iov &bufs)
|
||||||
{
|
{
|
||||||
return io(*this, out, [&]
|
return io(*this, out, [&]
|
||||||
{
|
{
|
||||||
return async_write(ssl, bufs, yield(continuation()));
|
return async_write(ssl, bufs, asio::transfer_all(), yield(continuation()));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,7 +247,7 @@ socket::write(const iov &bufs,
|
||||||
{
|
{
|
||||||
return io(*this, out, [&]
|
return io(*this, out, [&]
|
||||||
{
|
{
|
||||||
return async_write(ssl, bufs, yield(continuation())[ec]);
|
return async_write(ssl, bufs, asio::transfer_all(), yield(continuation())[ec]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue