diff options
author | Volker Lendecke <vl@samba.org> | 2014-05-07 09:44:57 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-05-08 09:10:12 +0200 |
commit | c0f6ab92f7516a0b3f0034a1ee25a45c4f088ec3 (patch) | |
tree | 1d10be36cdd7c23fa8fddec61e3bd60fc078dfa4 /source3/torture | |
parent | 80365e030d63f2d9708748149fb329467a284039 (diff) | |
download | samba-c0f6ab92f7516a0b3f0034a1ee25a45c4f088ec3.tar.gz |
messaging3: Push down the self-send callback
In the messaging_read receivers we already defer the callback: We need to
reply on potentially different tevent contexts, thus the defer_callback.
The callback case in messaging_dispatch_rec was direct before this
patch. This changes messaging_dispatch_rec to also defer the callback
in the self-send case.
Now we need only two roundtrips in local-messaging-read1 :-)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/test_messaging_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/torture/test_messaging_read.c b/source3/torture/test_messaging_read.c index 188b0216e71..0bb3128cd88 100644 --- a/source3/torture/test_messaging_read.c +++ b/source3/torture/test_messaging_read.c @@ -122,7 +122,7 @@ bool run_messaging_read1(int dummy) goto fail; } - for (i=0; i<3; i++) { + for (i=0; i<2; i++) { if (tevent_loop_once(ev) != 0) { fprintf(stderr, "tevent_loop_once failed\n"); goto fail; |