Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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 Framework
Commits
f5af386a
Commit
f5af386a
authored
Aug 31, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more verbose debug output to see return value of select()
parent
4570cef5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/middleman.cpp
src/middleman.cpp
+6
-2
No files found.
src/middleman.cpp
View file @
f5af386a
...
...
@@ -737,7 +737,7 @@ void middleman::operator()(int pipe_fd, middleman_queue& queue) {
};
auto
insert_new_handlers
=
[
&
]
{
if
(
m_new_channels
.
empty
()
==
false
)
{
DEBUG
(
"insert new channel(s)"
);
DEBUG
(
"insert
"
<<
m_new_channels
.
size
()
<<
"
new channel(s)"
);
move
(
m_new_channels
.
begin
(),
m_new_channels
.
end
(),
back_inserter
(
m_channels
));
m_new_channels
.
clear
();
...
...
@@ -745,7 +745,7 @@ void middleman::operator()(int pipe_fd, middleman_queue& queue) {
};
auto
erase_erroneous_channels
=
[
&
]
{
if
(
!
m_erased_channels
.
empty
())
{
DEBUG
(
"erase channel(s)"
);
DEBUG
(
"erase
"
<<
m_erased_channels
.
size
()
<<
"
channel(s)"
);
// erase all marked channels
for
(
network_channel_ptr
channel
:
m_erased_channels
)
{
erase_from
(
m_channels
,
channel
);
...
...
@@ -762,7 +762,11 @@ void middleman::operator()(int pipe_fd, middleman_queue& queue) {
//DEBUG("select()");
int
sresult
;
do
{
DEBUG
(
"select() on "
<<
(
m_peers_with_unwritten_data
.
size
()
+
m_channels
.
size
())
<<
" sockets"
);
sresult
=
select
(
maxfd
+
1
,
&
rdset
,
wrset_ptr
,
nullptr
,
nullptr
);
DEBUG
(
"select() returned "
<<
sresult
);
if
(
sresult
<
0
)
{
// try again or die hard
sresult
=
0
;
...
...
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