summaryrefslogtreecommitdiffstats
path: root/src/lib/http
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2022-07-22 14:14:21 +0200
committerRazvan Becheriu <razvan@isc.org>2022-07-22 14:24:07 +0200
commit9e6740b5c124e62a78d7bedceddcff3cb26289d8 (patch)
treec3107eabe460b603be7daad8ef8c57250418aabd /src/lib/http
parent[#2475] Added optional handle reset (diff)
downloadkea-9e6740b5c124e62a78d7bedceddcff3cb26289d8.tar.xz
kea-9e6740b5c124e62a78d7bedceddcff3cb26289d8.zip
[#2475] addressed review
Diffstat (limited to 'src/lib/http')
-rw-r--r--src/lib/http/client.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/http/client.cc b/src/lib/http/client.cc
index 1d7074b618..087623465f 100644
--- a/src/lib/http/client.cc
+++ b/src/lib/http/client.cc
@@ -1680,8 +1680,9 @@ Connection::receiveCallback(const uint64_t transid,
// EAGAIN and EWOULDBLOCK don't indicate an error in this case. All
// other errors should terminate the transaction.
- } if ((ec.value() != boost::asio::error::try_again) &&
- (ec.value() != boost::asio::error::would_block)) {
+ }
+ if ((ec.value() != boost::asio::error::try_again) &&
+ (ec.value() != boost::asio::error::would_block)) {
terminate(ec);
return;