summaryrefslogtreecommitdiffstats
path: root/source/rpc_client/cli_pipe.c
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
commitb0bd42c9466f41dc87a11fd6065620f93c8ebc40 (patch)
tree26c34af776d0ceeb74e2f8a3d48b9d89daf3539d /source/rpc_client/cli_pipe.c
parente0c61b31050a3e3fdec2c47c80ef34de3ec73e04 (diff)
downloadsamba-b0bd42c9466f41dc87a11fd6065620f93c8ebc40.tar.gz
samba-b0bd42c9466f41dc87a11fd6065620f93c8ebc40.tar.xz
samba-b0bd42c9466f41dc87a11fd6065620f93c8ebc40.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.
Diffstat (limited to 'source/rpc_client/cli_pipe.c')
-rw-r--r--source/rpc_client/cli_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c
index eae6be51282..0416ed3b9ba 100644
--- a/source/rpc_client/cli_pipe.c
+++ b/source/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 */
{