Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
smbprotocol-readonly
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Merlin Sievers
smbprotocol-readonly
Commits
4f84fdd6
Unverified
Commit
4f84fdd6
authored
4 years ago
by
Jordan Borean
Browse files
Options
Downloads
Patches
Plain Diff
Set default credit to 64
parent
a439a66c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
smbprotocol/session.py
+1
-1
1 addition, 1 deletion
smbprotocol/session.py
with
2 additions
and
2 deletions
CHANGELOG.md
+
1
−
1
View file @
4f84fdd6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
## 1.3.0 - TBD
## 1.3.0 - TBD
*
Changed initial credit request from
`256`
to
`
1
6`
when creating the SMB session
*
Changed initial credit request from
`256`
to
`6
4
`
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
...
...
This diff is collapsed.
Click to expand it.
smbprotocol/session.py
+
1
−
1
View file @
4f84fdd6
...
@@ -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
=
1
6
)
request
=
self
.
connection
.
send
(
session_setup
,
sid
=
self
.
session_id
,
credit_request
=
6
4
)
log
.
info
(
"
Receiving SMB2_SESSION_SETUP response message
"
)
log
.
info
(
"
Receiving SMB2_SESSION_SETUP response message
"
)
try
:
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment