Fixes: https://tracker.ceph.com/issues/64457
Signed-off-by: Samuel Just <sjust@redhat.com>
return Connection::dispatch_rw_bounded(cs, 128, true
).handle_exception_type([](const std::system_error& e) {
logger().error("test_unexpected_down(): client get error {}", e);
- ceph_assert(e.code() == error::read_eof);
+ ceph_assert(e.code() == error::read_eof ||
+ e.code() == std::errc::connection_reset);
});
},
[](auto ss) { return Connection::dispatch_rw_unbounded(ss); }