bincimap

Log | Files | Refs | LICENSE

commit f4cd29a1b303a44d60974687a0d4c80259e68a66
parent efe551c1e6638668ff044e5f451cb4e093b08718
Author: andreaha <andreaha@b31fe1f4-c0d1-0310-8000-a34f4ae90293>
Date:   Tue,  3 Feb 2004 06:39:12 +0000

- Increased internal buffer size to 8192 bytes.


git-svn-id: file:///home/cwright/convert/bincimap/trunk@24 b31fe1f4-c0d1-0310-8000-a34f4ae90293

Diffstat:
Msrc/operator-append.cc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/operator-append.cc b/src/operator-append.cc @@ -184,10 +184,10 @@ Operator::ProcessResult AppendOperator::process(Depot &depot, com.disableInputLimit(); while (nchars > 0) { - // Read in chunks of 1024, followed by an optional chunk at the - // end which is < 1024 bytes. + // Read in chunks of 8192, followed by an optional chunk at the + // end which is < 8192 bytes. string s; - int bytesToRead = nchars > 1024 ? 1024 : nchars; + int bytesToRead = nchars > 8192 ? 8192 : nchars; int readBytes = com.readStr(s, bytesToRead); if (readBytes <= 0) { mailbox->rollBackNewMessages();