mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
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 commit is contained in:
parent
e0c61b3105
commit
b0bd42c946
@ -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 */
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user