summaryrefslogtreecommitdiffstats
path: root/source3/lib/msg_channel.c
Commit message (Collapse)AuthorAgeFilesLines
* messaging3: remove msg_channelVolker Lendecke2014-01-211-337/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* messaging: Fix a memleak with clusteringVolker Lendecke2014-01-091-0/+3
| | | | | | | We have to properly throw away unexpected messages that came in via ctdb Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: Fix bug 10284Volker Lendecke2013-11-261-69/+31
| | | | | | | | | | | | | | | | | | If we msg_read_send on a nonempty channel, we create one tevent_immediate. If we directly receive another message and from within the msg_read_send's tevent_req callback we immediately do another msg_read_send, we end up with two tevent_immediate events for msg_channel_trigger with just one incoming message. Test to follow. This patch simplifies msg_channel.c by removing the explicit immediate events. Instead, it relies on the implicit immediate event available via tevent_req_defer_callback. For messages received from tdb with a msg_read_send req pending, we directly finish that request without putting the message on the queue. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10284 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* smbd: Fix a talloc hierarchy problem in msg_channelVolker Lendecke2013-11-201-1/+1
| | | | | | | | | | | | | When tearing down a watch_send with an open tevent_immediate, we talloc_free the msg_channel while the tevent_immediate still references it. Don't make the tevent_immediate outlive the msg_channel. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10250 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Nov 20 00:13:51 CET 2013 on sn-devel-104
* s3:lib: make use of samba_tevent_context_init()Stefan Metzmacher2013-02-191-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3-msg: For msg_channel, correct the talloc hierarchyVolker Lendecke2012-08-161-1/+1
| | | | | | | talloc_free() of a channel must free all immediate requests that have piled up Signed-off-by: Christian Ambach <ambi@samba.org>
* s3-msg: Rename msg_channel_init_destructorVolker Lendecke2012-08-161-3/+3
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* s3: Fix msg_channel in the cluster caseVolker Lendecke2012-04-201-3/+6
|
* s3: Attempt to fix Coverity ID 2748: INTEGER_OVERFLOWVolker Lendecke2012-04-191-1/+1
| | | | Not sure this will actually please Coverity, but it fixes a severe bug
* s3: Add msg_channelVolker Lendecke2012-04-171-0/+369
This is a tevent_based variant of messaging_register