Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / CosEvent / Timeout / README
blob2bbefc7e18f56b0002e5a33a2f2a655943140275
3 CosEvent timeout feature test
5 *Purpose:
7 Demonstrates the timeout feature (see cosevent.conf in this directory) of the
8 CosEvent service.  This feature was created because the reactive consumer/
9 supplier control is lacking in the following way.  A consumer may become
10 unresponsive during a push() upcall.  If the consumer is at all multithreaded,
11 then the reactive control's ping operation will still succeed.  Timeouts
12 (via the Messaging library's relative round-trip timeout policy) allow the
13 event service to disconnect an unresponsive client (consumer or supplier).
14 Notice in run_test.pl that the CosEvent_Service executable's new -b option
15 is used to enable callbacks on disconnect.  This was previously only availble
16 through code.
18 *Running:
20 > run_test.pl
22 *Sample output:
24 Found the EchoEventChannel.
25 Consumer connected
26 Ready to receive events...
27 Supplier starting...
28 TestEventConsumer_i::push(): Received event containing 40 bytes.
29 TestEventConsumer_i::push(): Received event containing 40 bytes.
30 TestEventConsumer_i::push(): Received event containing 40 bytes.
31 TestEventConsumer_i::push(): Received event containing 40 bytes.
32 TestEventConsumer_i::push(): Received event containing 40 bytes.
33 TestEventConsumer_i::push(): Received event containing 40 bytes.
34 TestEventConsumer_i::push(): Received event containing 40 bytes.
35 TestEventConsumer_i::push(): Received event containing 40 bytes.
36 TestEventConsumer_i::push(): Received event containing 40 bytes.
37 TestEventConsumer_i::push(): Received event containing 40 bytes.
38 TestEventConsumer_i::push(): Simulating hung consumer
39 TestEventConsumer_i::disconnect_push_consumer()
40 TestEventConsumer_i::push(): Done