Skip to content

Commit 5b03e4d

Browse files
committed
test/crimson/test_socket: complete write-side errors in test_unexpected_down()
Related: https://tracker.ceph.com/issues/64457 Signed-off-by: Yingxin Cheng <[email protected]>
1 parent 9dd5232 commit 5b03e4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/crimson/test_socket.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,11 @@ future<> test_unexpected_down(bool is_fixed_cpu) {
451451
return Connection::dispatch_rw_bounded(cs, 128, true
452452
).handle_exception_type([](const std::system_error& e) {
453453
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()
454456
ceph_assert(e.code() == error::read_eof ||
455-
e.code() == std::errc::connection_reset);
457+
e.code() == std::errc::connection_reset ||
458+
e.code() == std::errc::broken_pipe);
456459
});
457460
},
458461
[](auto ss) { return Connection::dispatch_rw_unbounded(ss); }

0 commit comments

Comments
 (0)