]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5470] Do not catch specific exceptions for remote_endpoint()
authorMarcin Siodelski <marcin@isc.org>
Mon, 26 Mar 2018 13:33:40 +0000 (15:33 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 26 Mar 2018 13:33:40 +0000 (15:33 +0200)
src/lib/http/client.cc
src/lib/http/connection.cc

index 2bb79f37f7403522f345bab56a779a66c8657947..d433136aa34a3d956bcb7dc1b82da3cf73f3d7a1 100644 (file)
@@ -518,7 +518,7 @@ Connection::doSend() {
     try {
         socket_.asyncSend(&buf_[0], buf_.size(), socket_cb);
 
-    } catch (const std::exception& ex) {
+    } catch (...) {
         terminate(boost::asio::error::not_connected);
     }
 }
@@ -532,7 +532,7 @@ Connection::doReceive() {
     try {
         socket_.asyncReceive(static_cast<void*>(input_buf_.data()), input_buf_.size(), 0,
                              &endpoint, socket_cb);
-    } catch (const std::exception& ex) {
+    } catch (...) {
         terminate(boost::asio::error::not_connected);
     }
 }
index 418715ea8a7680ac6f0246ef1f1f0eac3df025d5..59ee436b8cf5682a04546919454e0004bbd260da 100644 (file)
@@ -101,7 +101,7 @@ HttpConnection::doRead() {
         socket_.asyncReceive(static_cast<void*>(buf_.data()), buf_.size(),
                              0, &endpoint, cb);
 
-    } catch (const std::exception& ex) {
+    } catch (...) {
         stopThisConnection();
     }
 }
@@ -129,7 +129,7 @@ HttpConnection::doWrite() {
                 doRead();
             }
         }
-    } catch (const std::exception& ex) {
+    } catch (...) {
         stopThisConnection();
     }
 }