summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-28 14:15:15 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-05 22:31:12 +0200
commit56319cf1b7935d0716a27688361ac19f4e4f74b6 (patch)
treeedd240621a016004a82e5fd4185e7ed087dd192c
parentdfa8a5fca5bff05f37d18e56e049e2d176fb140c (diff)
downloadsamba-56319cf1b7935d0716a27688361ac19f4e4f74b6.tar.gz
samba-56319cf1b7935d0716a27688361ac19f4e4f74b6.tar.bz2
samba-56319cf1b7935d0716a27688361ac19f4e4f74b6.zip
s3:rpc_transport_tstream: only use tstream_cli_np_use_trans() for sync requests
Currently the caller doesn't cope with multiple async requests anyway, so this is just protection for the future. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Aug 5 22:31:12 CEST 2011 on sn-devel-104
-rw-r--r--source3/rpc_client/rpc_transport_tstream.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_client/rpc_transport_tstream.c b/source3/rpc_client/rpc_transport_tstream.c
index 8a860f9400..e223614ced 100644
--- a/source3/rpc_client/rpc_transport_tstream.c
+++ b/source3/rpc_client/rpc_transport_tstream.c
@@ -380,6 +380,12 @@ static struct tevent_req *rpc_tstream_trans_send(TALLOC_CTX *mem_ctx,
if (tstream_is_cli_np(transp->stream)) {
use_trans = true;
}
+ if (tevent_queue_length(transp->write_queue) > 0) {
+ use_trans = false;
+ }
+ if (tevent_queue_length(transp->read_queue) > 0) {
+ use_trans = false;
+ }
if (use_trans) {
tstream_cli_np_use_trans(transp->stream);