You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/07/14 23:20:00 UTC

[whimsy] branch master updated: Test for asfpy.pubsub chunking

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new a5b767b  Test for asfpy.pubsub chunking
a5b767b is described below

commit a5b767b9df9e07309eca9d4940ee952f97138fdc
Author: Sebb <se...@apache.org>
AuthorDate: Wed Jul 15 00:18:01 2020 +0100

    Test for asfpy.pubsub chunking
---
 www/infra/chunktest.cgi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

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