Created attachment 10217 [details]
patch for the bug
While playing around with various block sizes used with libsmbclient, I
noticed the following behavior:
- when reading 2MB chunks, libsmbclient would request 64512 bytes and
pipeline many of them at once.
- when forced to use SMB2 (against Win7 server), libsmbclient would use
65536 byte requests and only send 1 at a time.
The latter behavior is in contrast to what I get when using smbclient
and forcing SMB2: smbclient requests two 1MiB requests concurrently.
The attached patch fixes the problem and has been reviewed on the mailing list. It probably needs to be backported to 4.1.
Created attachment 10219 [details]
git-am fix for 4.1.next and 4.0.next.
Patch that went into master. Applies cleanly to 4.1.next, 4.0.next.
Karolin please pick for 4.1.next, 4.0.next - thanks !
Pushed to autobuild-v4-[0|1]-test.
Pushed to both branches.
Closing out bug report.