summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShirish Kalele <kalele@samba.org>2002-08-20 19:58:23 +0000
committerShirish Kalele <kalele@samba.org>2002-08-20 19:58:23 +0000
commitd9a4055174862c87c737685eb554429e2cd985d2 (patch)
tree93adccfcdd24dc941b82cb2a428aeeb43fe4bc15
parentdcaceb410d62bc6667b44692eab9506275f3f139 (diff)
downloadsamba-d9a4055174862c87c737685eb554429e2cd985d2.tar.gz
samba-d9a4055174862c87c737685eb554429e2cd985d2.tar.bz2
samba-d9a4055174862c87c737685eb554429e2cd985d2.zip
The "max data count" value in SMB transacts indicates how much the other end can
send us. As it stands, we incorrectly set it to the number of bytes we are sending. Correcting this by setting a static value of 1024 (This could even be something larger). Improves RPC client performance. (This used to be commit b0bd42c9466f41dc87a11fd6065620f93c8ebc40)
-rw-r--r--source3/rpc_client/cli_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index eae6be5128..0416ed3b9b 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -354,7 +354,7 @@ static BOOL rpc_api_pipe(struct cli_state *cli, uint16 cmd, prs_struct *data, pr
if (!cli_api_pipe(cli, "\\PIPE\\",
setup, 2, 0, /* Setup, length, max */
NULL, 0, 0, /* Params, length, max */
- pdata, data_len, data_len, /* data, length, max */
+ pdata, data_len, 1024, /* data, length, max */
&rparam, &rparam_len, /* return params, len */
&prdata, &rdata_len)) /* return data, len */
{