Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
actor-incubator
Commits
460d4b41
Commit
460d4b41
authored
Jul 19, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error reporting
parent
776d9956
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
libcaf_net/src/multiplexer.cpp
libcaf_net/src/multiplexer.cpp
+7
-3
No files found.
libcaf_net/src/multiplexer.cpp
View file @
460d4b41
...
@@ -145,7 +145,8 @@ bool multiplexer::poll_once(bool blocking) {
...
@@ -145,7 +145,8 @@ bool multiplexer::poll_once(bool blocking) {
blocking
?
-
1
:
0
);
blocking
?
-
1
:
0
);
#endif
#endif
if
(
presult
<
0
)
{
if
(
presult
<
0
)
{
switch
(
last_socket_error
())
{
auto
code
=
last_socket_error
();
switch
(
code
)
{
case
std
:
:
errc
::
interrupted
:
{
case
std
:
:
errc
::
interrupted
:
{
// A signal was caught. Simply try again.
// A signal was caught. Simply try again.
CAF_LOG_DEBUG
(
"received errc::interrupted, try again"
);
CAF_LOG_DEBUG
(
"received errc::interrupted, try again"
);
...
@@ -159,8 +160,11 @@ bool multiplexer::poll_once(bool blocking) {
...
@@ -159,8 +160,11 @@ bool multiplexer::poll_once(bool blocking) {
}
}
default:
{
default:
{
// Must not happen.
// Must not happen.
perror
(
"poll() failed"
);
auto
int_code
=
static_cast
<
int
>
(
code
);
CAF_CRITICAL
(
"poll() failed"
);
auto
msg
=
std
::
generic_category
().
message
(
int_code
);
string_view
prefix
=
"poll() failed: "
;
msg
.
insert
(
msg
.
begin
(),
prefix
.
begin
(),
prefix
.
end
());
CAF_CRITICAL
(
msg
.
c_str
());
}
}
}
}
// Rinse and repeat.
// Rinse and repeat.
...
...
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