Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ensure timeout is a float or nil or AR::Duration screws up select

  • Loading branch information...
commit 62807779d3b21d7d780b46b6309f87545ff54fba 1 parent 30d01d6
@rtomayko rtomayko authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bertrpc/action.rb
View
2  lib/bertrpc/action.rb
@@ -36,7 +36,7 @@ def read(sock, len, timeout)
end
def transaction(bert_request)
- timeout = @svc.timeout
+ timeout = @svc.timeout && Float(@svc.timeout)
sock = connect_to(@svc.host, @svc.port, timeout)
if @req.options
Please sign in to comment.
Something went wrong with that request. Please try again.