diff options
author | Shirish Kalele <kalele@samba.org> | 2002-08-20 19:58:23 +0000 |
---|---|---|
committer | Shirish Kalele <kalele@samba.org> | 2002-08-20 19:58:23 +0000 |
commit | b0bd42c9466f41dc87a11fd6065620f93c8ebc40 (patch) | |
tree | 26c34af776d0ceeb74e2f8a3d48b9d89daf3539d | |
parent | e0c61b31050a3e3fdec2c47c80ef34de3ec73e04 (diff) | |
download | samba-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.
-rw-r--r-- | source/rpc_client/cli_pipe.c | 2 |
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 */ { |