diff options
| author | Volker Lendecke <vl@samba.org> | 2013-11-21 21:05:29 +0100 |
|---|---|---|
| committer | Volker Lendecke <vl@samba.org> | 2013-11-26 20:57:17 +0100 |
| commit | 6b6920b02905661ae661a894e3bd8d2c744d7003 (patch) | |
| tree | 7f5b629649a6fd06d8b0dd02b91d907c9eb65558 /python/examples/dnsserver.py | |
| parent | a793ac016db95290470515d89c187365bfcb4f18 (diff) | |
| download | samba-6b6920b02905661ae661a894e3bd8d2c744d7003.tar.gz samba-6b6920b02905661ae661a894e3bd8d2c744d7003.tar.xz samba-6b6920b02905661ae661a894e3bd8d2c744d7003.zip | |
smbd: Fix bug 10284
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>
Diffstat (limited to 'python/examples/dnsserver.py')
0 files changed, 0 insertions, 0 deletions
