From 9edc1599125fbd3588a22d9a4145666a9c322798 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 28 Jul 2011 20:22:45 -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 594f7003efd..d71a72c2e58 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -235,7 +235,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.34.1