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
6cd5071e
Commit
6cd5071e
authored
Oct 18, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
adea8cd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wcfs/__init__.py
wcfs/__init__.py
+5
-4
No files found.
wcfs/__init__.py
View file @
6cd5071e
...
...
@@ -137,7 +137,7 @@ class _Mapping(object):
def
connect
(
wc
,
at
):
# -> Conn
wconn
=
Conn
()
#
XXX
support !isolated mode
#
TODO
support !isolated mode
wconn
.
_wc
=
wc
wconn
.
at
=
at
wconn
.
_wlink
=
WatchLink
(
wc
)
...
...
@@ -417,8 +417,8 @@ class WatchLink(object):
wlink
.
_wtx
=
os
.
fdopen
(
wh2
,
'wb'
)
# XXX vvv -> test only?
wlink
.
rx_eof
=
chan
(
)
# becomes ready when wcfs closes its tx side
wlink
.
fatalv
=
[]
# fatal messages received from wcfs
wlink
.
rx_eof
=
chan
(
dtype
=
'C.structZ'
)
# becomes ready when wcfs closes its tx side
wlink
.
fatalv
=
[]
# fatal messages received from wcfs
# inv.protocol message IO
wlink
.
_acceptq
=
chan
()
# (stream, msg) server originated messages go here
...
...
@@ -440,6 +440,7 @@ class WatchLink(object):
def
_closeTX
(
wlink
):
# XXX -> sync.Once
if
wlink
.
_txclosed
:
return
...
...
@@ -505,7 +506,7 @@ class WatchLink(object):
msg
=
msg
.
rstrip
(
'
\
n
'
)
if
stream
==
0
:
# control/fatal message from wcfs
# XXX print -> receive somewhere?
# XXX print -> receive somewhere?
XXX -> recvCtl ?
print
(
'C: watch : rx fatal: %r'
%
msg
)
wlink
.
fatalv
.
append
(
msg
)
continue
...
...
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