TEST: test service and program to invoke MultiSession deadlock
The opensrf.test.random_delay_echo takes two arguments, a string
and a value for the maximum delay, measured in milliseconds. It
returns a string after a random delay bounded by the specified
maximum.
The test program is invoked like this:
exercise_multi_infinite.pl /path/to/opensrf_core.xml numparallel numdelay numechos.
E.g.,
./exercise_multi_infinite.pl /openils/conf/opensrf_core.xml 7 1 10
It uses MultiSession to call the opensrf.test.random_delay_echo service
with the specified delay, number of parallel sessions, and total number
of echo calls to make, then repeats that until cancelled. If the
deadlock is encountered, it stops emitting output.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>