Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
43da1686
Commit
43da1686
authored
Aug 31, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfs/Connection: check for disappearing libnfs socket
parent
6d643f92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Connection.cxx
src/lib/nfs/Connection.cxx
+18
-0
No files found.
src/lib/nfs/Connection.cxx
View file @
43da1686
...
...
@@ -300,6 +300,24 @@ NfsConnection::OnSocketReady(unsigned flags)
closed
=
true
;
BroadcastError
(
std
::
move
(
error
));
}
else
if
(
SocketMonitor
::
IsDefined
()
&&
nfs_get_fd
(
context
)
<
0
)
{
/* this happens when rpc_reconnect_requeue() is called
after the connection broke, but autoreconnet was
disabled - nfs_service() returns 0 */
Error
error
;
const
char
*
msg
=
nfs_get_error
(
context
);
if
(
msg
==
nullptr
)
error
.
Set
(
nfs_domain
,
"NFS socket disappeared"
);
else
error
.
Format
(
nfs_domain
,
"NFS socket disappeared: %s"
,
msg
);
const
ScopeLock
protect
(
mutex
);
DestroyContext
();
closed
=
true
;
BroadcastError
(
std
::
move
(
error
));
}
assert
(
in_event
);
...
...
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