diff --git a/CHANGELOG.md b/CHANGELOG.md index 16704ad175c453264b4f434a1bc861021f980cd0..5448e3a0bc73e9967dce4b5e48594598d34df13b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 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 * 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 diff --git a/smbprotocol/session.py b/smbprotocol/session.py index f2ef3020e67b3fd2522a1da75242f2ec7a8e57aa..b738e8b57ff97ab785431da1b79f19332e2b46f6 100644 --- a/smbprotocol/session.py +++ b/smbprotocol/session.py @@ -283,7 +283,7 @@ class Session(object): session_setup['buffer'] = out_token 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") try: