]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: client: Increase the default BDAT chunk size.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 17 Mar 2018 17:00:54 +0000 (18:00 +0100)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 28 May 2018 06:10:46 +0000 (09:10 +0300)
Reduces the number of roundtrips and keeps the TCP window filled better.
The default is now based on the NET_BLOCK_SIZE definition.

src/lib-smtp/smtp-client.h

index 8914935ff824b2a75ae0e082e143d6a0be4f5510..bacb5ad73b21e39f34ccaaa67f132db5733df423 100644 (file)
@@ -12,7 +12,7 @@ struct smtp_client_request;
 #define SMTP_DEFAULT_CONNECT_TIMEOUT_MSECS (1000*30)
 #define SMTP_DEFAULT_COMMAND_TIMEOUT_MSECS (1000*60*5)
 #define SMTP_DEFAULT_MAX_REPLY_SIZE ((size_t)-1)
-#define SMTP_DEFAULT_MAX_DATA_CHUNK_SIZE IO_BLOCK_SIZE
+#define SMTP_DEFAULT_MAX_DATA_CHUNK_SIZE NET_BLOCK_SIZE
 #define SMTP_DEFAULT_MAX_DATA_CHUNK_PIPELINE 4
 
 enum smtp_client_command_error {