Skip to content

Commit

Permalink
lib-smtp: client: Increase the default BDAT chunk size.
Browse files Browse the repository at this point in the history
Reduces the number of roundtrips and keeps the TCP window filled better.
The default is now based on the NET_BLOCK_SIZE definition.
  • Loading branch information
stephanbosch authored and villesavolainen committed May 28, 2018
1 parent 1fca105 commit 0d48dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-smtp/smtp-client.h
Expand Up @@ -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 {
Expand Down

0 comments on commit 0d48dd6

Please sign in to comment.