lib/httpx/selector.rb in httpx-0.2.1 vs lib/httpx/selector.rb in httpx-0.3.0
- old
+ new
@@ -107,10 +107,10 @@
end
r.unshift(@__r__)
readers, writers = IO.select(r, w, nil, interval)
- raise HTTPX::TimeoutError, "timed out while waiting on select" if readers.nil? && writers.nil?
+ raise HTTPX::TimeoutError.new(interval, "timed out while waiting on select") if readers.nil? && writers.nil?
rescue IOError, SystemCallError
@lock.synchronize do
@readers.reject! { |io, _| io.closed? }
@writers.reject! { |io, _| io.closed? }
end