Permalink
Browse files

ffi-rzmq api changed.

  • Loading branch information...
1 parent e050617 commit e45b895d691aa15d639cc6f3d075e9286bbc5b15 @sbryant sbryant committed Jan 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/connection.rb
View
@@ -39,7 +39,9 @@ def initialize(sender_id, sub_addr, pub_addr)
# Receives a raw Request object that you
# can then work with.
def recv
- Request.parse(@reqs.recv_string(0))
+ msg = String.new
+ rc = @reqs.recv_string msg, 0
+ Request.parse(msg)
end
# Same as regular recv, but assumes the body is JSON and

0 comments on commit e45b895

Please sign in to comment.