diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/messaging/messaging.c | 2 | ||||
-rw-r--r-- | source4/torture/local/messaging.c | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c index 7e87ea45df..2f9a43c847 100644 --- a/source4/lib/messaging/messaging.c +++ b/source4/lib/messaging/messaging.c @@ -375,6 +375,8 @@ NTSTATUS messaging_send(void *msg_ctx, servid_t server, uint32_t msg_type, DATA_ talloc_set_destructor(rec, rec_destructor); + messaging_send_handler(msg->event.ev, rec->fde, 0, EVENT_FD_WRITE); + return NT_STATUS_OK; } diff --git a/source4/torture/local/messaging.c b/source4/torture/local/messaging.c index 8fbb38db45..d4aaf80f4f 100644 --- a/source4/torture/local/messaging.c +++ b/source4/torture/local/messaging.c @@ -93,11 +93,7 @@ static BOOL test_ping_speed(TALLOC_CTX *mem_ctx) ping_count++; } - while (ping_count > pong_count + 20) { - event_loop_once(ev); - event_loop_once(ev); - event_loop_once(ev); - event_loop_once(ev); + while (ping_count > pong_count + 10) { event_loop_once(ev); } } @@ -110,7 +106,6 @@ static BOOL test_ping_speed(TALLOC_CTX *mem_ctx) printf("sending exit\n"); messaging_send(msg_ctx, 1, MY_EXIT, NULL); - event_loop_once(ev); if (ping_count != pong_count) { printf("ping test failed! received %d, sent %d\n", pong_count, ping_count); |