test client make mirror data source channel open and close all the time
authorAndy Green <andy@warmcat.com>
Tue, 24 May 2011 21:06:17 +0000 (22:06 +0100)
committerAndy Green <andy@warmcat.com>
Tue, 24 May 2011 21:06:17 +0000 (22:06 +0100)
commit4084af17451978e38938c64139758c349eddcfd5
tree4b692ac3ba8c98c89d7ef50bba44a5aac82dc59e
parent0054401f2175de98d4f3ed1507dfc0da19270738
test client make mirror data source channel open and close all the time

This changes the test client so that for the mirror protocol socket,
the lifetime of the connection is decided randomly to last on the order
of a second or so, then the connection is closed and a new one opened when
the close is complete.

This is to enhance testing of connection bringup and teardown especially
in mux case.

The overall functionality remains the same, spamming circles to all clients.

Signed-off-by: Andy Green <andy@warmcat.com>
test-server/test-client.c