From 9d579ed2398d7f88c9c02076e612eed877d1ec88 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 29 Jul 2011 11:16:51 -0700 Subject: [PATCH] First part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id: bad message_id Set default max credits to 8192 now this has been documented in the SMB2 spec. --- docs-xml/smbdotconf/protocol/smb2maxcredits.xml | 2 +- source3/include/local.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-xml/smbdotconf/protocol/smb2maxcredits.xml b/docs-xml/smbdotconf/protocol/smb2maxcredits.xml index 69d04f75d65..310b8989eaf 100644 --- a/docs-xml/smbdotconf/protocol/smb2maxcredits.xml +++ b/docs-xml/smbdotconf/protocol/smb2maxcredits.xml @@ -8,7 +8,7 @@ that Samba tells the client it will allow. This is similar to the parameter for SMB1. You should never need to set this parameter. -The default is 128 credits, which is the same as a Windows SMB2 server. +The default is 8192 credits, which is the same as a Windows 2008R2 SMB2 server. 128 diff --git a/source3/include/local.h b/source3/include/local.h index 680631c1c51..807d3c975e6 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -264,7 +264,7 @@ #define DEFAULT_SMB2_MAX_READ (1024*1024) #define DEFAULT_SMB2_MAX_WRITE (1024*1024) #define DEFAULT_SMB2_MAX_TRANSACT (1024*1024) -#define DEFAULT_SMB2_MAX_CREDITS 128 +#define DEFAULT_SMB2_MAX_CREDITS 8192 #define DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR 2 #endif -- 2.47.3