mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
data transfer: reuse buffer
Change-Id: I4ede33afd5823eb3ce320a03be10e79fcb417ae8
This commit is contained in:
@ -330,8 +330,8 @@ private:
|
||||
void sendFile() const
|
||||
{
|
||||
dht::ThreadPool::io().run([this]() {
|
||||
std::vector<char> buf;
|
||||
while (!input_.eof() && onRecvCb_) {
|
||||
std::vector<char> buf;
|
||||
buf.resize(MAX_BUFFER_SIZE);
|
||||
|
||||
input_.read(&buf[0], buf.size());
|
||||
|
Reference in New Issue
Block a user