commit | a5b767b9df9e07309eca9d4940ee952f97138fdc | [log] [tgz] |
---|---|---|
author | Sebb <sebb@apache.org> | Wed Jul 15 00:18:01 2020 +0100 |
committer | Sebb <sebb@apache.org> | Wed Jul 15 00:18:01 2020 +0100 |
tree | 40b17629a7bc11d06da4e01cadf6e49bfdb17142 | |
parent | d401aa33e9a4813344ab539b65c856a9f91d9ab7 [diff] |
Test for asfpy.pubsub chunking
diff --git a/www/infra/chunktest.cgi b/www/infra/chunktest.cgi new file mode 100755 index 0000000..a39aaa2 --- /dev/null +++ b/www/infra/chunktest.cgi
@@ -0,0 +1,19 @@ +#!/usr/bin/env ruby + +# Test for asfpy chunking + +require 'json' + +print "Content-type: text/plain; charset=UTF-8\r\n\r\n" + +$stdout.sync = true + +data = { + data: '1234567890' * 2000 +} +out = JSON.generate(data)+"\n" + +3.times do + print out + sleep 5 +end