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
266a2474
Commit
266a2474
authored
Jun 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b9efdbbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+9
-5
No files found.
wcfs/wcfs_test.py
View file @
266a2474
...
...
@@ -502,8 +502,12 @@ class tWatchLink:
t
.
_serveCancel
()
# ask wcfs to close its tx & rx sides; close(wcfs.tx) wakes up
# _serveRX on client (= on us).
t
.
_send
(
1
,
b'bye'
)
# _serveRX on client (= on us). The connection can be already closed by
# wcfs - so ignore errorswhen sending bye.
try
:
t
.
_send
(
1
,
b'bye'
)
except
IOError
:
pass
# XXX we can get stuck here if wcfs does not behave as we want.
# XXX in particular if there is a silly - e.g. syntax or type error in
# test code - we curently get stuck here.
...
...
@@ -527,7 +531,6 @@ class tWatchLink:
def
_serveRX
(
t
,
ctx
):
# when finishing - wakeup everyone waiting for rx
def
_
():
t
.
rx_eof
.
close
()
t
.
_acceptq
.
close
()
with
t
.
_rxmu
:
rxtab
=
t
.
_rxtab
...
...
@@ -540,8 +543,9 @@ class tWatchLink:
# NOTE: .close() makes sure ._wrx.read*() will wake up
l
=
t
.
_wrx
.
readline
()
print
(
'C: watch : rx: %r'
%
l
)
if
len
(
l
)
==
0
:
break
# closed
if
len
(
l
)
==
0
:
# peer closed its tx
t
.
rx_eof
.
close
()
break
# <stream> ... \n
stream
,
msg
=
l
.
split
(
' '
,
1
)
...
...
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