Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
0151669a
Commit
0151669a
authored
Sep 21, 2022
by
oroulet
Committed by
oroulet
Sep 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also fix selecting limits
parent
c810a2b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
asyncua/common/connection.py
asyncua/common/connection.py
+4
-6
No files found.
asyncua/common/connection.py
View file @
0151669a
...
@@ -29,12 +29,10 @@ class TransportLimits:
...
@@ -29,12 +29,10 @@ class TransportLimits:
max_message_size
:
int
=
100
*
1024
*
1024
# 100mb
max_message_size
:
int
=
100
*
1024
*
1024
# 100mb
@
staticmethod
@
staticmethod
def
_select_limit
(
hint
:
ua
.
UInt32
,
limit
:
int
)
->
ua
.
UInt32
:
def
_select_limit
(
other
:
ua
.
UInt32
,
current_limit
:
int
)
->
ua
.
UInt32
:
if
limit
<=
0
:
if
current_limit
<=
0
or
other
<=
0
:
return
hint
return
max
(
other
,
ua
.
UInt32
(
current_limit
))
elif
limit
<
hint
:
return
min
(
other
,
ua
.
UInt32
(
current_limit
))
return
hint
return
ua
.
UInt32
(
limit
)
def
is_msg_size_within_limit
(
self
,
sz
:
int
)
->
bool
:
def
is_msg_size_within_limit
(
self
,
sz
:
int
)
->
bool
:
if
self
.
max_message_size
==
0
:
if
self
.
max_message_size
==
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment