r4690: - add support for async rpc server replies
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Jan 2005 16:53:02 +0000 (16:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:43 +0000 (13:08 -0500)
commitfae215266b6711b24f4893653b146751885e4e5f
treeaf13886f2431e1aa8a55a6da473e950dd3d5a053
parent90d65c2e85c8042391b8219eeaedd780e6eb3c7c
r4690: - add support for async rpc server replies

the backend should check for
(dce_call->state_flags & DCESRV_CALL_STATE_FLAG_MAY_ASYNC)
then it's allowed to reply async

then the backend should mark that call as async with
dce_call->state_flags |= DCESRV_CALL_STATE_FLAG_ASYNC;

later it has to manualy set r->out.result
and then send the reply by calling

status = dcesrv_reply(p->dce_call);

NOTE: that ncacn_np doesn't support async replies yet

- implement an async version of echo_TestSleep

- reenable the echo_TestSleep torture test
  (this need to be more strict when we have support for async ncacn_np)

metze
(This used to be commit f0a0dbeb25b034b1333078ca085999359f5f6209)
source4/build/pidl/server.pm
source4/build/pidl/stub.pm
source4/ntvfs/ipc/vfs_ipc.c
source4/rpc_server/dcerpc_server.c
source4/rpc_server/dcerpc_server.h
source4/rpc_server/dcerpc_sock.c
source4/rpc_server/echo/rpc_echo.c
source4/torture/rpc/echo.c