summaryrefslogtreecommitdiffstats
path: root/utils/src/hiperf.cc
diff options
context:
space:
mode:
authorMichele Papalini <micpapal@cisco.com>2019-04-19 08:15:30 +0000
committerGerrit Code Review <gerrit@fd.io>2019-04-19 08:15:30 +0000
commit305e7617be61d21ebd0dee043588c469bc28ad3b (patch)
tree83ee1a84277db1497fd2c83557070301cd58e225 /utils/src/hiperf.cc
parent578ddd558df8824a70ada334d7636614eab729f3 (diff)
parentb375370d0f11163da8cb752c4a3f992a89ef80ee (diff)
Merge "[HICN-178] Sync send of control messages."
Diffstat (limited to 'utils/src/hiperf.cc')
-rw-r--r--utils/src/hiperf.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/src/hiperf.cc b/utils/src/hiperf.cc
index ddc79d520..681696dbf 100644
--- a/utils/src/hiperf.cc
+++ b/utils/src/hiperf.cc
@@ -467,6 +467,7 @@ class HIperfClient {
void readError(const std::error_code ec) noexcept override {
std::cerr << "Error while reading from RTC socket" << std::endl;
+ client_.io_service_.stop();
}
void readSuccess(std::size_t total_size) noexcept override {
@@ -509,6 +510,7 @@ class HIperfClient {
void readError(const std::error_code ec) noexcept override {
std::cerr << "Error " << ec.message() << " while reading from socket"
<< std::endl;
+ client_.io_service_.stop();
}
void readSuccess(std::size_t total_size) noexcept override {