view tools/xenstore/testsuite/16block-watch-crash.test @ 6823:c63529f3367d

Fix xenstored watch crash.
When a connection blocked waiting on a transaction, don't queue watch events.
Sure, they'd be ignored and re-transmitted, but it hits an assert that we don't
send data out blocked connections, and it's wasteful.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Sep 14 08:41:49 2005 +0000 (2005-09-14)
children 9af349b055e5 3233e7ecfa9f
line source
1 # Test case where blocked connection gets sent watch.
3 mkdir /test
4 watch /test token
5 1 start /test
6 # This will block on above
7 noackwrite /test/entry create contents
8 1 write /test/entry2 create contents
9 1 commit
10 readack
11 expect /test/entry2:token
12 waitwatch
13 ackwatch token