1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:libsmb: get rid of cli_state_max_requests

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Luk Claes 2012-05-19 18:35:51 +02:00 committed by Stefan Metzmacher
parent 7c69ca09d0
commit 6c18a66f3e
3 changed files with 2 additions and 8 deletions

View File

@ -443,11 +443,6 @@ uint32_t cli_state_available_size(struct cli_state *cli, uint32_t ofs)
return ret;
}
uint16_t cli_state_max_requests(struct cli_state *cli)
{
return smbXcli_conn_max_requests(cli->conn);
}
const uint8_t *cli_state_server_challenge(struct cli_state *cli)
{
return smb1cli_conn_server_challenge(cli->conn);

View File

@ -513,7 +513,7 @@ struct tevent_req *cli_pull_send(TALLOC_CTX *mem_ctx,
state->chunk_size &= ~(page_size - 1);
}
state->max_reqs = cli_state_max_requests(cli);
state->max_reqs = smbXcli_conn_max_requests(cli->conn);
state->num_reqs = MAX(window_size/state->chunk_size, 1);
state->num_reqs = MIN(state->num_reqs, state->max_reqs);
@ -1215,7 +1215,7 @@ struct tevent_req *cli_push_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
state->chunk_size &= ~(page_size - 1);
}
state->max_reqs = cli_state_max_requests(cli);
state->max_reqs = smbXcli_conn_max_requests(cli->conn);
if (window_size == 0) {
window_size = state->max_reqs * state->chunk_size;

View File

@ -182,7 +182,6 @@ uint16_t cli_state_get_uid(struct cli_state *cli);
uint16_t cli_state_set_uid(struct cli_state *cli, uint16_t uid);
bool cli_set_case_sensitive(struct cli_state *cli, bool case_sensitive);
uint32_t cli_state_available_size(struct cli_state *cli, uint32_t ofs);
uint16_t cli_state_max_requests(struct cli_state *cli);
const uint8_t *cli_state_server_challenge(struct cli_state *cli);
const DATA_BLOB *cli_state_server_gss_blob(struct cli_state *cli);
uint16_t cli_state_security_mode(struct cli_state *cli);