summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-07-28 20:22:45 -0700
committerJeremy Allison <jra@samba.org>2011-07-29 10:18:12 -0700
commit9edc1599125fbd3588a22d9a4145666a9c322798 (patch)
treedb3a8d749ee521062f8026e526bdb0b4325ecb0d
parentfac5c654e2fe17c2c11d150b16088e8a51f6be20 (diff)
downloadsamba-9edc1599125fbd3588a22d9a4145666a9c322798.tar.gz
samba-9edc1599125fbd3588a22d9a4145666a9c322798.tar.bz2
samba-9edc1599125fbd3588a22d9a4145666a9c322798.zip
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.
-rw-r--r--docs-xml/smbdotconf/protocol/smb2maxcredits.xml2
-rw-r--r--source3/include/local.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs-xml/smbdotconf/protocol/smb2maxcredits.xml b/docs-xml/smbdotconf/protocol/smb2maxcredits.xml
index 69d04f75d6..310b8989ea 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 <smbconfoption name="max mux"/>
parameter for SMB1. You should never need to set this parameter.
</para>
-<para>The default is 128 credits, which is the same as a Windows SMB2 server.</para>
+<para>The default is 8192 credits, which is the same as a Windows 2008R2 SMB2 server.</para>
</description>
<value type="default">128</value>
diff --git a/source3/include/local.h b/source3/include/local.h
index 594f7003ef..d71a72c2e5 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