LP#1777180 Websocketd gateway and test scripts
authorBill Erickson <berickxx@gmail.com>
Sat, 9 Jun 2018 23:05:25 +0000 (19:05 -0400)
committerBen Shum <ben@evergreener.net>
Wed, 12 Sep 2018 15:27:33 +0000 (11:27 -0400)
commit21c9c76332b8a4b591e443d098a0fc78b6db0e9d
tree26b3bb13a450e68a09aa179ad33b4c972da98f6d
parent6414c2527f6b6857d9f163bdba6f071b09f710a3
LP#1777180 Websocketd gateway and test scripts

Adds a new OpenSRF binary/program for relaying websockets messages
to and from a websocketd instance.  The new binary
(osrf-websocket-stdio) performs the same tasks as the
osrf_websocket_translator.c Apache module, minus the Apache module glue
and the extra threading required to run within the Apache module.

Commit includes 2 test scripts (tester.pl and test-stateful.pl) for
generating large series of test messages to send to a websockets
instance. tester.pl sends echo requests only, test-stateful.pl sends
connect->echo-request->disconnect batches across a configurable number
of forked processes.

INSTALL document updated to include websocketd setup as an alternative
to Apache websockets.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Ben Shum <ben@evergreener.net>
.gitignore
README
configure.ac
src/Makefile.am
src/websocket-stdio/Makefile.am [new file with mode: 0644]
src/websocket-stdio/osrf-websocket-stdio.c [new file with mode: 0644]
src/websocket-stdio/test-stateful.pl [new file with mode: 0755]
src/websocket-stdio/tester.pl [new file with mode: 0755]