We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dd5232 commit 5b03e4dCopy full SHA for 5b03e4d
src/test/crimson/test_socket.cc
@@ -451,8 +451,11 @@ future<> test_unexpected_down(bool is_fixed_cpu) {
451
return Connection::dispatch_rw_bounded(cs, 128, true
452
).handle_exception_type([](const std::system_error& e) {
453
logger().error("test_unexpected_down(): client get error {}", e);
454
+ // union of errors from both read and write
455
+ // also see dispatch_write_unbounded() and dispatch_read_unbounded()
456
ceph_assert(e.code() == error::read_eof ||
- e.code() == std::errc::connection_reset);
457
+ e.code() == std::errc::connection_reset ||
458
+ e.code() == std::errc::broken_pipe);
459
});
460
},
461
[](auto ss) { return Connection::dispatch_rw_unbounded(ss); }
0 commit comments