Commit d1ae2bff authored by Marcin Siodelski's avatar Marcin Siodelski

[5216] Ignore EINPROGRESS error in IOFetch.

parent 9e3ca83d
// 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment