Skip to content

Commit

Permalink
Support multiple errors in io_wait
Browse files Browse the repository at this point in the history
  • Loading branch information
rsamoilov committed Sep 1, 2024
1 parent 5a06c89 commit 37a4381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rage/fiber_scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def io_wait(io, events, timeout = nil)
::Iodine::Scheduler.attach(io.fileno, events, timeout&.ceil || 0) { |err| f.resume(err) }

err = Fiber.defer(io.fileno)
if err == Errno::ETIMEDOUT::Errno
if err < 0
0
else
events
Expand Down
2 changes: 1 addition & 1 deletion rage.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "thor", "~> 1.0"
spec.add_dependency "rack", "~> 2.0"
spec.add_dependency "rage-iodine", "~> 3.0"
spec.add_dependency "rage-iodine", "~> 4.0"
spec.add_dependency "zeitwerk", "~> 2.6"
spec.add_dependency "rack-test", "~> 2.1"
end

0 comments on commit 37a4381

Please sign in to comment.