Skip to content
Snippets Groups Projects
Unverified Commit 4f84fdd6 authored by Jordan Borean's avatar Jordan Borean
Browse files

Set default credit to 64

parent a439a66c
Branches
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
## 1.3.0 - TBD ## 1.3.0 - TBD
* Changed initial credit request from `256` to `16` when creating the SMB session * Changed initial credit request from `256` to `64` when creating the SMB session
* This is done to avoid overloading the SMB server * This is done to avoid overloading the SMB server
* If `smbclient` requires more credits to perform an operation it will request it automatically * If `smbclient` requires more credits to perform an operation it will request it automatically
* Improve credit handling when reading and writing large amounts of data to reduce the number of requests being made * Improve credit handling when reading and writing large amounts of data to reduce the number of requests being made
......
...@@ -283,7 +283,7 @@ class Session(object): ...@@ -283,7 +283,7 @@ class Session(object):
session_setup['buffer'] = out_token session_setup['buffer'] = out_token
log.info("Sending SMB2_SESSION_SETUP request message") log.info("Sending SMB2_SESSION_SETUP request message")
request = self.connection.send(session_setup, sid=self.session_id, credit_request=16) request = self.connection.send(session_setup, sid=self.session_id, credit_request=64)
log.info("Receiving SMB2_SESSION_SETUP response message") log.info("Receiving SMB2_SESSION_SETUP response message")
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment