The Samba-Bugzilla – Attachment 8617 Details for
Bug 9702
Current crediting algorithm causes problems due to a Win7 client bug.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 3.6.x.
0001-s3-Crediting-fix-to-fix-a-client-side-Win-7-bug.patch (text/plain), 1.15 KB, created by
Jeremy Allison
on 2013-03-07 19:23:22 UTC
(
hide
)
Description:
git-am fix for 3.6.x.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2013-03-07 19:23:22 UTC
Size:
1.15 KB
patch
obsolete
>From cdb09105e25affa570d0d6a01bcab358fc9f2294 Mon Sep 17 00:00:00 2001 >From: Ira Cooper <ira@samba.org> >Date: Thu, 7 Mar 2013 01:06:12 +0000 >Subject: [PATCH] s3: Crediting fix to fix a client side Win 7 bug. > >The client will run itself out of credits, and make mistakes >issuing compound requests. This code stops the client from >starving itself. Microsoft likely does something similar, >they document a "minimum credits" option, defaulted to 64. >--- > source3/smbd/smb2_server.c | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c >index a0e390e..4631e57 100644 >--- a/source3/smbd/smb2_server.c >+++ b/source3/smbd/smb2_server.c >@@ -486,6 +486,11 @@ static void smb2_set_operation_credit(struct smbd_server_connection *sconn, > out_flags = IVAL(outhdr, SMB2_HDR_FLAGS); > out_status = NT_STATUS(IVAL(outhdr, SMB2_HDR_STATUS)); > >+ /* This is a wrok around for a Win 7 client bug. */ >+ if (credits_requested == 0 && sconn->smb2.credits_granted < 64) { >+ credits_requested = 1; >+ } >+ > SMB_ASSERT(sconn->smb2.max_credits >= sconn->smb2.credits_granted); > > if (out_flags & SMB2_HDR_FLAG_ASYNC) { >-- >1.7.10.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
ira
:
review-
Actions:
View
Attachments on
bug 9702
:
8617
|
8984
|
10677
|
10680
|
10691
|
10692
|
10693
|
10694
|
10695
|
10697
|
10698