examples/echo_client.rb in pigato-0.4.9 vs examples/echo_client.rb in pigato-0.5.0

- old
+ new

@@ -10,11 +10,11 @@ (0..5).each do |tid| ts << Thread.new { client = Pigato::Client.new('tcp://127.0.0.1:55555', { :autostart => true, :timeout => 20000 }) - requests = 50000 + requests = 1000 success = 0 d1 = Time.now requests.times do |i| begin sw = "Hello world #{i}" @@ -34,10 +34,10 @@ ts.each do |to| to.join end end -(0..2).each do |pid| +(0..1).each do |pid| pid = fork do start end end