Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
d80dc316
Commit
d80dc316
authored
Mar 10, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0b9cfeb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wcfs/client/wcfs_watchlink.cpp
wcfs/client/wcfs_watchlink.cpp
+4
-4
No files found.
wcfs/client/wcfs_watchlink.cpp
View file @
d80dc316
...
...
@@ -181,7 +181,7 @@ error _WatchLink::_serveRX(context::Context ctx) {
// wcfs sent reply on unexpected stream -> shutdown wlink.
// XXX down.
log
::
Errorf
(
"%s: .%lu: wcfs sent reply on unexpected stream"
,
v
(
wlink
),
pkt
.
stream
);
return
XXX
;
return
ErrLinkDown
;
// XXX correct error
}
int
_
=
select
({
ctx
->
done
().
recvs
(),
// 0
...
...
@@ -197,9 +197,9 @@ error _WatchLink::_serveRX(context::Context ctx) {
wlink
.
_rxmu
.
lock
();
if
(
wlink
.
_accepted
.
has
(
pkt
.
stream
))
{
wlink
.
_rxmu
.
unlock
();
//
XXX log + down
print
f
(
"%s: .%lu: wcfs sent request on already used stream"
,
v
(
wlink
),
pkt
.
stream
);
continue
;
// XXX -> return
//
wcfs request on already used stream
log
::
Error
f
(
"%s: .%lu: wcfs sent request on already used stream"
,
v
(
wlink
),
pkt
.
stream
);
return
ErrLinkDown
;
// XXX correct error
}
// XXX clear _accepted not to leak memory after reply is sent
wlink
.
_accepted
.
insert
(
pkt
.
stream
);
...
...
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