lib/dtas/unix_client.rb in dtas-0.19.0 vs lib/dtas/unix_client.rb in dtas-0.20.0

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2013-2020 all contributors <dtas-all@nongnu.org> +# Copyright (C) all contributors <dtas-all@nongnu.org> # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt> # frozen_string_literal: true require_relative '../dtas' require_relative 'xs' require 'socket' @@ -37,10 +37,10 @@ req_start(args) res_wait(timeout) end def res_wait(timeout = nil) - IO.select([@to_io], nil, nil, timeout) + @to_io.wait_readable(timeout) nr = @to_io.nread nr > 0 or raise EOFError, "unexpected EOF from server" @to_io.recv(nr) end end