Skip to content
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.

Commit

Permalink
[2.4.3] hotfix - still need to notify in worker thread on socket remo…
Browse files Browse the repository at this point in the history
…val.
  • Loading branch information
Simon Ninon committed Jun 20, 2017
1 parent 3851908 commit cc98f8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sources/network/unix/io_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ io_service::process_rd_event(const fd_t& fd, tracked_socket& socket) {
__TACOPIE_LOG(debug, "untrack socket");
m_tracked_sockets.erase(it);
m_wait_for_removal_condvar.notify_all();
m_notifier.notify();
}
};
}
Expand Down Expand Up @@ -189,6 +190,7 @@ io_service::process_wr_event(const fd_t& fd, tracked_socket& socket) {
__TACOPIE_LOG(debug, "untrack socket");
m_tracked_sockets.erase(it);
m_wait_for_removal_condvar.notify_all();
m_notifier.notify();
}
};
}
Expand Down
2 changes: 2 additions & 0 deletions sources/network/windows/io_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ io_service::process_events(void) {
__TACOPIE_LOG(debug, "untrack socket");
m_tracked_sockets.erase(it);
m_wait_for_removal_condvar.notify_all();
m_notifier.notify();
}
}
}
Expand Down Expand Up @@ -162,6 +163,7 @@ io_service::process_rd_event(const fd_t& fd, tracked_socket& socket) {
__TACOPIE_LOG(debug, "untrack socket");
m_tracked_sockets.erase(it);
m_wait_for_removal_condvar.notify_all();
m_notifier.notify();
}
};
}
Expand Down

0 comments on commit cc98f8d

Please sign in to comment.