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 a3baae0
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));
}

if (timeout) fprintf(stderr, "_cb_ruby_wait timeout: %ld.%06ld\n", timeout->tv_sec, timeout->tv_usec);
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 a3baae0

Please sign in to comment.