search for: sock_data

Displaying 1 result from an estimated 1 matches for "sock_data".

Did you mean: lock_data
2008 Jun 10
3
Backgroundrb fixes for transfering large amounts of data
...s large enough to cause connection.read_nonblock to throw the Errno::EAGAIN exception multiple times. We changed the code to make sure read_nonblock is called repeatedly until the tokenizer finds a complete record, and this fixed the problem. def read_object begin while (true) sock_data = "" begin while(sock_data << @connection.read_nonblock(1023)); end rescue Errno::EAGAIN @tokenizer.extract(sock_data) { |b_data| return b_data } end end rescue raise BackgrounDRb::BdrbConnError.new("Not able to connec...