Skip to content

Commit

Permalink
Log result of io_read.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 4, 2024
1 parent c612b22 commit 4700764
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/io/event/selector/uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ VALUE IO_Event_Selector_URing_io_read(VALUE self, VALUE fiber, VALUE io, VALUE b
size_t maximum_size = size - offset;
while (maximum_size) {
int result = io_read(selector, fiber, descriptor, (char*)base+offset, maximum_size);
fprintf(stderr, "io_read: %d, %s\n", result, IO_Event_try_again(-result) ? "try again" : "failed");

if (result > 0) {
total += result;
Expand Down

0 comments on commit 4700764

Please sign in to comment.