messaging3: Push down the self-send callback
commitc0f6ab92f7516a0b3f0034a1ee25a45c4f088ec3
authorVolker Lendecke <vl@samba.org>
Wed, 7 May 2014 07:44:57 +0000 (7 09:44 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 8 May 2014 07:10:12 +0000 (8 09:10 +0200)
tree1d10be36cdd7c23fa8fddec61e3bd60fc078dfa4
parent80365e030d63f2d9708748149fb329467a284039
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>
source3/lib/messages.c
source3/torture/test_messaging_read.c