diff options
author | Evan Weaver <eweaver@twitter.com> | 2008-11-22 12:47:59 -0800 |
---|---|---|
committer | Evan Weaver <eweaver@twitter.com> | 2008-11-22 12:48:52 -0800 |
commit | 2710d631aa4ecff45bf39374c5dd30de41d5cc23 (patch) | |
tree | 229cb97e14f44141caebaf8c4afacbb47022a06e /examples/random_thrash.rb | |
parent | 559edfb1fbf18e9496a4235831fd49c5b0d8b459 (diff) | |
download | unicorn-2710d631aa4ecff45bf39374c5dd30de41d5cc23.tar.gz |
Diffstat (limited to 'examples/random_thrash.rb')
-rw-r--r-- | examples/random_thrash.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/examples/random_thrash.rb b/examples/random_thrash.rb deleted file mode 100644 index fe9311c..0000000 --- a/examples/random_thrash.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'socket' -devrand = open("/dev/random","r") - -loop do - s = TCPSocket.new(ARGV[0],ARGV[1]) - s.write("GET / HTTP/1.1\r\n") - total = 0 - begin - loop do - r = devrand.read(10) - n = s.write(r) - total += n - end - rescue Object - STDERR.puts "#$!: #{total}" - end - s.close - sleep 1 -end |