Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xlte
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
0
Merge Requests
0
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
Joanne Hugé
xlte
Commits
a04a9398
Commit
a04a9398
authored
Dec 20, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xlte: fix password connection
parent
3a35162b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
amari/__init__.py
amari/__init__.py
+2
-1
amari/drb.py
amari/drb.py
+1
-1
amari/xlog.py
amari/xlog.py
+1
-1
No files found.
amari/__init__.py
View file @
a04a9398
...
...
@@ -56,7 +56,7 @@ def connect(ctx, wsuri, password=None): # -> Conn
ws
.
settimeout
(
5
)
# reasonable default
try
:
# FIXME handle ctx cancel (but it won't stuck forever due to ._ws own timeout)
ws
.
connect
(
wsuri
)
ws
.
connect
(
wsuri
,
password
=
password
)
except
Exception
as
ex
:
raise
ConnError
(
"connect"
)
from
ex
return
Conn
(
ws
,
wsuri
,
password
)
...
...
@@ -108,6 +108,7 @@ class Conn:
raise
ConnError
(
"handshake"
)
from
ex
conn
.
wsuri
=
wsuri
conn
.
password
=
password
conn
.
_ws
=
ws
conn
.
srv_ready_msg
=
msg0
conn
.
t_srv_ready_msg
=
t_msg0
...
...
amari/drb.py
View file @
a04a9398
...
...
@@ -971,7 +971,7 @@ def _x_stats_srv(ctx, reqch: chan, conn: amari.Conn):
# both ue_get and stats queries, due to overall 100Hz rate-limiting, ue_get
# would be retrieved at only 50Hz rate. With separate connection for stats
# we can retrieve both ue_get and stats each at 100Hz simultaneously.
conn_stats
=
amari
.
connect
(
ctx
,
conn
.
wsuri
)
conn_stats
=
amari
.
connect
(
ctx
,
conn
.
wsuri
,
password
=
conn
.
password
)
defer
(
conn_stats
.
close
)
rtt_stats
=
_IncStats
()
# like rtt_ue_stats but for stats instead of ue_get
δ
t_stats
=
_IncStats
()
# δ(stats.timestamp)
...
...
amari/xlog.py
View file @
a04a9398
...
...
@@ -418,7 +418,7 @@ class _XMsgServer:
# main logger queries stats, and x.drb_stats server also queries stats
# internally, then data received by main logger will cover only small
# random period of time instead of full wanted period.
conn2
=
amari
.
connect
(
ctx
,
conn
.
wsuri
)
conn2
=
amari
.
connect
(
ctx
,
conn
.
wsuri
,
password
=
conn
.
password
)
defer
(
conn2
.
close
)
xsrv
.
_func
(
ctx
,
xsrv
.
_reqch
,
conn2
)
...
...
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