Skip to content

Commit

Permalink
Debug timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 25, 2024
1 parent 0eb581f commit cc37ef9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/ruby/ext/trilogy-ruby/cext.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ static int _cb_ruby_wait(trilogy_sock_t *sock, trilogy_wait_t wait)
RB_OBJ_WRITE(ctx->self, &ctx->io, rb_io_fdopen(trilogy_sock_fd(sock), O_RDWR, NULL));
}

fprintf(stderr, "rb_io_wait: timeout=%p, wait_flag=%d\n", timeout, wait_flag);
VALUE result = rb_io_wait(ctx->io, RB_INT2NUM(wait_flag), rb_fiber_scheduler_make_timeout(timeout));

if (result == RUBY_Qfalse) {
Expand Down

0 comments on commit cc37ef9

Please sign in to comment.