Skip to content

Commit f0d77f9

Browse files
committed
Debug test_accept_each
1 parent c54efde commit f0d77f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: ext/um/um.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ VALUE um_accept_each_safe_loop(VALUE arg) {
536536
rb_raise(rb_eRuntimeError, "no result found for accept_each loop");
537537

538538
while (um_op_result_shift(ctx->machine, ctx->op, &result, &flags)) {
539+
um_raise_on_system_error(result);
539540
if (likely(result > 0))
540541
rb_yield(INT2FIX(result));
541542
else
@@ -547,9 +548,7 @@ VALUE um_accept_each_safe_loop(VALUE arg) {
547548
VALUE um_accept_each(struct um *machine, int fd) {
548549
struct um_op *op = um_op_checkout(machine);
549550
struct io_uring_sqe *sqe = um_get_sqe(machine, op);
550-
struct sockaddr addr;
551-
socklen_t len;
552-
io_uring_prep_multishot_accept(sqe, fd, &addr, &len, 0);
551+
io_uring_prep_multishot_accept(sqe, fd, NULL, NULL, 0);
553552
op->state = OP_submitted;
554553
op->is_multishot = 1;
555554

0 commit comments

Comments
 (0)