aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAulddays <[email protected]>2017-08-18 09:15:36 +0000
committerAulddays <[email protected]>2017-08-18 09:15:36 +0000
commitc6cf359ffc3f4e3d20063d28fde897773cbd19e9 (patch)
tree8f2c7e73d410dd891f7131ee60beb1e5bd869779
parentFixed #177: thread id on OpenBSD. (diff)
downloadvmime-c6cf359ffc3f4e3d20063d28fde897773cbd19e9.tar.gz
vmime-c6cf359ffc3f4e3d20063d28fde897773cbd19e9.zip
Fixed send performance issue
-rw-r--r--src/vmime/net/imap/IMAPFolder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmime/net/imap/IMAPFolder.cpp b/src/vmime/net/imap/IMAPFolder.cpp
index 8761de81..1fbe1331 100644
--- a/src/vmime/net/imap/IMAPFolder.cpp
+++ b/src/vmime/net/imap/IMAPFolder.cpp
@@ -1116,7 +1116,7 @@ messageSet IMAPFolder::addMessage
while (!is.eof())
{
// Read some data from the input stream
- const size_t read = is.read(buffer, sizeof(buffer));
+ const size_t read = is.read(buffer, blockSize);
current += read;
// Put read data into socket output stream