Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Commits
869d2053
Commit
869d2053
authored
2 years ago
by
controls
Browse files
Options
Downloads
Patches
Plain Diff
Fixing timout logic
parent
ec3034b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!439
RCG 5.0 release fro deb 10
,
!415
Cdsrfm to use new dolphin interface
,
!411
Userspace dolphin daemon, netlink dolphin setup for real time models
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dolphin_daemon/include/NetlinkSocket.hpp
+3
-2
3 additions, 2 deletions
src/dolphin_daemon/include/NetlinkSocket.hpp
src/dolphin_daemon/src/DolphinKernelProxy.cpp
+3
-3
3 additions, 3 deletions
src/dolphin_daemon/src/DolphinKernelProxy.cpp
with
6 additions
and
5 deletions
src/dolphin_daemon/include/NetlinkSocket.hpp
+
3
−
2
View file @
869d2053
...
...
@@ -113,11 +113,12 @@ class NetlinkSocket
msg
.
msg_iov
=
&
iov
;
msg
.
msg_iovlen
=
1
;
size_t
ret
=
::
recvmsg
(
_sock_fd
,
&
msg
,
0
);
s
size_t
ret
=
::
recvmsg
(
_sock_fd
,
&
msg
,
0
);
if
(
ret
>
0
)
memcpy
(
data
,
NLMSG_DATA
(
nlh
),
ret
-
NLMSG_HDRLEN
);
return
ret
-
NLMSG_HDRLEN
;
//Return size of data
return
ret
-
NLMSG_HDRLEN
;
return
ret
;
//Return error code
}
...
...
This diff is collapsed.
Click to expand it.
src/dolphin_daemon/src/DolphinKernelProxy.cpp
+
3
−
3
View file @
869d2053
...
...
@@ -37,17 +37,17 @@ DolphinKernelProxy::DolphinKernelProxy()
void
DolphinKernelProxy
::
thread_body
()
{
in
t
ret
;
ssize_
t
ret
;
char
buffer
[
MAX_PAYLOAD
]
=
{
0
};
while
(
!
should_stop
()
)
{
ret
=
_requests_socket
->
recvmsg
(
buffer
,
MAX_PAYLOAD
);
if
(
ret
==
-
1
)
continue
;
//Timout
if
(
ret
<
0
)
{
if
((
errno
==
EAGAIN
)
||
(
errno
==
EWOULDBLOCK
))
continue
;
//Timout
spdlog
::
warn
(
"DolphinKernelProxy - Error {}, when receiving netlink multicast message from group {}"
,
ret
,
NETLINK_GROUP_NUM
);
continue
;
...
...
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