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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
fe485267
Commit
fe485267
authored
Mar 10, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3b7a4381
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
wcfs/client/wcfs_watchlink.cpp
wcfs/client/wcfs_watchlink.cpp
+5
-5
wcfs/client/wcfs_watchlink.h
wcfs/client/wcfs_watchlink.h
+1
-1
No files found.
wcfs/client/wcfs_watchlink.cpp
View file @
fe485267
...
...
@@ -136,12 +136,12 @@ error _WatchLink::_serveRX(context::Context ctx) {
wlink
.
_rxmu
.
lock
();
wlink
.
_rxeof
=
rxeof
;
wlink
.
_down
=
true
;
// don't allow new rxtab registers; mark the link as down
wlink
.
_rxmu
.
unlock
();
wlink
.
_acceptq
.
close
();
for
(
auto
_
:
wlink
.
_rxtab
)
{
// FIXME iterates without lock
for
(
auto
_
:
wlink
.
_rxtab
)
{
auto
rxq
=
_
.
second
;
rxq
.
close
();
}
wlink
.
_rxmu
.
unlock
();
wlink
.
_acceptq
.
close
();
});
string
l
;
...
...
@@ -166,8 +166,8 @@ error _WatchLink::_serveRX(context::Context ctx) {
return
E
(
err
);
if
(
pkt
.
stream
==
0
)
{
// control/fatal message from wcfs
log
::
Errorf
(
"
C: watch : rx fatal: %s
\n
"
,
v
(
l
));
wlink
.
fatalv
.
push_back
(
pkt
.
to_string
());
// XXX stub -> errorq
?
log
::
Errorf
(
"
%s: rx fatal: %s
\n
"
,
v
(
wlink
)
,
v
(
l
));
wlink
.
fatalv
.
push_back
(
pkt
.
to_string
());
// XXX stub -> errorq
continue
;
// wcfs should close link after error
}
...
...
wcfs/client/wcfs_watchlink.h
View file @
fe485267
...
...
@@ -77,7 +77,7 @@ class _WatchLink : public object {
// iso.protocol message IO
chan
<
rxPkt
>
_acceptq
;
// server originated messages go here
sync
::
Mutex
_rxmu
;
// XXX -> _mu ?
sync
::
Mutex
_rxmu
;
bool
_down
;
// y when the link is no-longer operational
bool
_rxeof
;
// y if EOF was received from server
dict
<
StreamID
,
chan
<
rxPkt
>>
...
...
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