Coool. Would you mind opening an Avro issue for that, or should I? -----Original Message----- From: "Gabor Torok" <gabor.to...@sunpowercorp.com> Sent: Thursday, September 30, 2010 2:36pm To: "user@cassandra.apache.org" <user@cassandra.apache.org> Subject: RE: avro + cassandra + ruby
The ruby code creates a new http connection for each call to transceive. Here is what I changed to make it work: gabor$ diff /usr/local/lib/ruby/gems/1.8/gems/avro-1.4.0/lib/avro/ipc.rb ~/avro-trunk/lang/ruby/lib/avro/ipc.rb 518d517 < require "net/http" 525d523 < @conn = Net::HTTP.start host, port 531c529,531 < resp = @conn.post('/', writer.to_s, {'Content-Type' => 'avro/binary'}) --- > resp = Net::HTTP.start(host, port) do |http| > http.post('/', writer.to_s, {'Content-Type' => 'avro/binary'}) > end Thanks, --Gabor