From: Marcin Siodelski Date: Thu, 13 Apr 2017 11:05:56 +0000 (+0200) Subject: [5216] Ignore EINPROGRESS error in IOFetch. X-Git-Tag: trac5087_base~7^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1ae2bffa1bdee348befe9cc8416940208aed30d;p=thirdparty%2Fkea.git [5216] Ignore EINPROGRESS error in IOFetch. --- diff --git a/src/lib/asiodns/io_fetch.cc b/src/lib/asiodns/io_fetch.cc index 571c54fae8..ecedd17e0a 100644 --- a/src/lib/asiodns/io_fetch.cc +++ b/src/lib/asiodns/io_fetch.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2011-2016 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2011-2017 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -232,7 +232,11 @@ IOFetch::operator()(boost::system::error_code ec, size_t length) { if (data_->stopped) { return; - } else if (ec) { + + // On Debian it has been often observed that boost::asio async + // operations result in EINPROGRESS. This doesn't neccessarily + // indicate an issue. Thus, we continue as if no error occurred. + } else if (ec && (ec.value() != boost::asio::error::in_progress)) { logIOFailure(ec); return; }