Secod part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id...
commit1d4d9194abf3694e2f890744c6f7764088b1c1f3
authorJeremy Allison <jra@samba.org>
Fri, 29 Jul 2011 03:23:30 +0000 (28 20:23 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 29 Jul 2011 18:37:42 +0000 (29 20:37 +0200)
treebd6183f8e875413caae52258fcca68ca803fac9c
parent9edc1599125fbd3588a22d9a4145666a9c322798
Secod part of bugfix for bug #8335 - file copy aborts with smb2_validate_message_id: bad message_id

Modify the credit granting algorithm to closer to what I believe
Windows does.

Split up max_credits into 1/16ths, and then scale
the requested credits by how many 16ths have been
currently granted. Less than 1/16th == grant all
requested (100%), scale down as more have been
granted. Never ask for less than 1 if the client
asked for at least 1.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jul 29 20:37:42 CEST 2011 on sn-devel-104
source3/smbd/smb2_server.c