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
d15f8444
Commit
d15f8444
authored
Nov 26, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9fe0087c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
wcfs/internal/wcfs_watchlink.cpp
wcfs/internal/wcfs_watchlink.cpp
+2
-3
No files found.
wcfs/internal/wcfs_watchlink.cpp
View file @
d15f8444
...
@@ -71,12 +71,11 @@ pair<WatchLink, error> WCFS::_openwatch() {
...
@@ -71,12 +71,11 @@ pair<WatchLink, error> WCFS::_openwatch() {
error
_WatchLink
::
closeWrite
()
{
error
_WatchLink
::
closeWrite
()
{
_WatchLink
&
wlink
=
*
this
;
_WatchLink
&
wlink
=
*
this
;
error
err
;
wlink
.
_txclose1
.
do_
([
&
]()
{
wlink
.
_txclose1
.
do_
([
&
]()
{
// ask wcfs to close its tx & rx sides; close(wcfs.tx) wakes up
// ask wcfs to close its tx & rx sides; close(wcfs.tx) wakes up
// _serveRX on client (= on us). The connection can be already closed
// _serveRX on client (= on us). The connection can be already closed
// by wcfs - so ignore errors when sending bye.
// by wcfs - so ignore errors when sending bye.
err
=
wlink
.
_send
(
1
,
"bye"
);
// XXX stream ok?
(
void
)
wlink
.
_send
(
1
,
"bye"
);
// XXX stream ok?
// XXX vvv should be ~ shutdown(TX, wlink._f), however shutdown does
// XXX vvv should be ~ shutdown(TX, wlink._f), however shutdown does
// not work for non-socket file descriptors. And even if we dup link
// not work for non-socket file descriptors. And even if we dup link
// fd, and close only one used for TX, peer's RX will still be blocked
// fd, and close only one used for TX, peer's RX will still be blocked
...
@@ -84,7 +83,7 @@ error _WatchLink::closeWrite() {
...
@@ -84,7 +83,7 @@ error _WatchLink::closeWrite() {
// state. So just use ^^^ "bye" as "TX closed" message.
// state. So just use ^^^ "bye" as "TX closed" message.
// wlink._wtx.close();
// wlink._wtx.close();
});
});
return
err
;
return
nil
;
}
}
// close closes the link.
// close closes the link.
...
...
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