mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
Merge pull request #35904 from mkogan1/wip-fix-endpoint-not-connected-r2
rgw: fix boost::asio::async_write() does not return error... Reviewed-by: Matt Benjamin <mbenjamin@redhat.com> Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
c757bc862d
@ -69,6 +69,10 @@ class StreamIO : public rgw::asio::ClientIO {
|
||||
yield[ec]);
|
||||
if (ec) {
|
||||
ldout(cct, 4) << "write_data failed: " << ec.message() << dendl;
|
||||
if (ec==boost::asio::error::broken_pipe) {
|
||||
boost::system::error_code ec_ignored;
|
||||
stream.lowest_layer().shutdown(tcp::socket::shutdown_both, ec_ignored);
|
||||
}
|
||||
throw rgw::io::Exception(ec.value(), std::system_category());
|
||||
}
|
||||
return bytes;
|
||||
|
Loading…
Reference in New Issue
Block a user